-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
98 lines (90 loc) · 2.03 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
98 lines (90 loc) · 2.03 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
version: "3.8"
services:
web:
container_name: gigabot_web
build:
context: ./services/web
dockerfile: .dockerfile
volumes:
- ./services/web/src:/srv/www/gigabot/services/web/src
networks:
- frontend
ports:
- 3000:3000
- 53000:9229
depends_on:
server:
condition: service_healthy
restart: unless-stopped
server:
container_name: gigabot_server
build:
context: ./services/server
dockerfile: .dockerfile
volumes:
- ./services/server/src:/srv/www/gigabot/services/server/src
networks:
- frontend
- backend
ports:
- 7000:7000
- 57000:9229
depends_on:
server_db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:7000/api/v1/status || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
restart: unless-stopped
command: npm run debug
core:
container_name: gigabot_core
build:
context: ./services/core
dockerfile: .dockerfile
volumes:
- ./services/core/src:/srv/www/gigabot/services/core/src
networks:
- backend
ports:
- 7001:7001
- 57001:9229
depends_on:
server:
condition: service_healthy
restart: unless-stopped
command: npm run debug
# nlu:
# container_name: nlu
# website:
# container_name: website
# docs:
# container_name: docs
server_db:
container_name: gigabot_server_db
image: postgres:15.3-alpine3.18
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=server_db
volumes:
- ./volumes/server_db/data:/var/lib/postgresql/data
networks:
- backend
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d server_db"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
restart: unless-stopped
networks:
frontend:
name: gigabot_frontend
backend:
name: gigabot_backend