CodeCards/docker-compose.yml

32 lines
605 B
YAML
Raw Permalink Normal View History

2024-08-04 17:49:28 +00:00
services:
backend:
2024-08-05 17:32:46 +00:00
container_name: backend
2024-08-04 17:49:28 +00:00
build:
context: ./backend
dockerfile: Dockerfile
working_dir: /app
ports:
- "5000:5000"
volumes:
- ./backend:/app
frontend:
2024-08-05 17:32:46 +00:00
container_name: frontend
2024-08-04 17:49:28 +00:00
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- ./frontend:/node_modules
2024-08-05 17:32:46 +00:00
db:
container_name: database
image: mongodb/mongodb-community-server
ports:
- "27017:27017"
volumes:
- ./database/data:/data/db
2024-08-04 17:49:28 +00:00