-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
101 lines (93 loc) · 1.8 KB
/
docker-compose-dev.yml
File metadata and controls
101 lines (93 loc) · 1.8 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3.9"
services:
backend:
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "5000:5000"
env_file:
- ./Backend/.env
volumes:
- ./Backend:/app
- /app/node_modules
labels:
author: "Ujjwal Saini"
depends_on:
mongo:
condition: service_healthy
networks:
- investiq-net
restart: unless-stopped
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
env_file:
- ./Frontend/.env.local
volumes:
- ./Frontend:/app
- /app/node_modules
labels:
author: "Ujjwal Saini"
networks:
- investiq-net
restart: unless-stopped
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
labels:
author: "Ujjwal Saini"
networks:
- investiq-net
restart: unless-stopped
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
workflows:
build:
context: ./workflows
dockerfile: Dockerfile
container_name: workflows
environment:
- PORT=4000
ports:
- "4000:4000"
volumes:
- ./workflows:/app
- /app/node_modules
command: ["pnpm", "dev"]
depends_on:
- backend
networks:
- investiq-net
restart: unless-stopped
labels:
author: "Ujjwal Saini"
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80:80"
depends_on:
- backend
- workflows
networks:
- investiq-net
restart: unless-stopped
volumes:
mongo_data:
networks:
investiq-net:
driver: bridge
labels:
author: "Ujjwal Saini, Gayatri Singh"