-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
94 lines (86 loc) · 1.68 KB
/
docker-compose-prod.yml
File metadata and controls
94 lines (86 loc) · 1.68 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
version: "3.9"
services:
backend:
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "5000:5000"
env_file:
- ./Backend/.env
labels:
author: "Ujjwal Saini"
depends_on:
mongo:
condition: service_healthy
networks:
- investiq-net
restart: unless-stopped
command: ["node", "dist/index.js"]
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
env_file:
- ./Frontend/.env
labels:
author: "Ujjwal Saini"
networks:
- investiq-net
restart: unless-stopped
command: ["pnpm", "run", "build"]
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"
labels:
author: "Ujjwal Saini"
networks:
- investiq-net
restart: unless-stopped
depends_on:
- backend
command: ["pnpm", "start"]
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"