first commit
This commit is contained in:
39
docker-compose.yml
Normal file
39
docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:7
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
- mongo-data:/data/db
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
command: npm run dev
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- /app/node_modules
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
ports:
|
||||
- "4000:4000"
|
||||
depends_on:
|
||||
- mongo
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
command: npm run dev -- --host --port 5173
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
env_file:
|
||||
- ./frontend/.env
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
mongo-data:
|
||||
Reference in New Issue
Block a user