forked from ChatbotXIO/ChatbotX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (57 loc) 路 1.25 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
63 lines (57 loc) 路 1.25 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
name: chatbotx
include:
- docker-compose.yml
x-service-common: &service-common
platform: linux/amd64
restart: unless-stopped
env_file:
- ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- chatbotx-network
x-worker-common: &worker-common
<<: *service-common
build:
context: .
dockerfile: apps/worker/docker/Dockerfile
services:
builder:
<<: *service-common
build:
context: .
dockerfile: apps/builder/docker/Dockerfile
ports:
- "3123:3000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
filesystem:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/api/health" ]
interval: 30s
timeout: 10s
retries: 3
environment:
- RUN_DB_MIGRATE=true
- RUN_DB_SEED=true
# BullMQ Worker
worker:
<<: *worker-common
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
filesystem:
condition: service_healthy
realtime:
<<: *service-common
build:
context: .
dockerfile: apps/realtime/docker/Dockerfile
ports:
- "1999:1999"