Files
DoC/docker-compose.yaml
T

40 lines
635 B
YAML

services:
backend:
build:
context: ./backend
container_name: backend
ports:
- "8070:8000"
volumes:
- ./backend:/app
depends_on:
- db
env_file:
- backend/.env
frontend:
build:
context: ./frontend
container_name: frontend
ports:
- "8071:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=/api
depends_on:
- backend
db:
image: mongo:4.4
container_name: mongo
restart: always
ports:
- "27018:27017"
volumes:
- mongo_data:/data/db
volumes:
mongo_data: