-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
41 lines (39 loc) · 783 Bytes
/
Copy pathcompose.dev.yaml
File metadata and controls
41 lines (39 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
todo-backend:
container_name: todo-backend
build:
context: ./backend
dockerfile: Dockerfile
network: host
ports:
- 8888:80
volumes:
- /home/virajs-desktop/git-repo/todo-api/backend/app:/app
command: ["fastapi", "run", "main.py", "--port", "80", "--reload"]
env_file:
- backend/.env
networks:
- nginx
todo-frontend:
container_name: todo-frontend
build:
context: ./frontend
dockerfile: Dockerfile
network: host
ports:
- 5173:80
env_file:
- frontend/.env
networks:
- nginx
mongo:
container_name: todo-database
image: mongo:8.3.2
ports:
- 20000:27017
env_file:
- .env
networks:
- nginx
networks:
nginx: