-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (41 loc) · 1.18 KB
/
compose.yml
File metadata and controls
45 lines (41 loc) · 1.18 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
x-bbot-server-base: &bbot-server-base
build:
context: .
restart: unless-stopped
volumes:
- "${BBOT_SERVER_CONFIG:-~/.config/bbot_server/config.yml}:/home/bbot/.config/bbot_server/config.yml"
- ./bbot_server:/app/bbot_server
- ./bbot_server/defaults_docker.yml:/app/bbot_server/defaults.yml
services:
server:
<<: *bbot-server-base
ports:
- "${BBOT_LISTEN_ADDRESS:-127.0.0.1}:${BBOT_PORT:-8807}:8807"
command: ["bbctl", "server", "start", "--api-only", "--listen", "0.0.0.0", "--reload"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8807/v1/docs"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
environment:
- BBOT_SERVER_AUTH_ENABLED=${BBOT_SERVER_AUTH_ENABLED:-true}
depends_on:
- mongodb
- redis
worker:
<<: *bbot-server-base
command: ["bbctl", "server", "start", "--worker-only"]
environment:
- BBOT_SERVER_RECONCILE_INDEXES=false
depends_on:
server:
condition: service_healthy
mongodb:
image: mongo:latest
restart: unless-stopped
volumes:
- ./mongodb:/data/db
redis:
image: redis:latest
restart: unless-stopped