-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) · 2.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
82 lines (77 loc) · 2.56 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
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: botfleet
POSTGRES_PASSWORD: botfleet
POSTGRES_DB: botfleet
volumes:
- botfleet-db:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U botfleet"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
app:
build:
context: .
dockerfile: apps/control-plane/Dockerfile
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "3000:3000"
environment:
DATABASE_URL: "postgresql://botfleet:botfleet@db:5432/botfleet"
REDIS_URL: "redis://redis:6379"
BOTFLEET_ENCRYPTION_KEY: "${BOTFLEET_ENCRYPTION_KEY:?set BOTFLEET_ENCRYPTION_KEY in your shell or .env}"
AUTH_DISCORD_ID: "${AUTH_DISCORD_ID:?set AUTH_DISCORD_ID}"
AUTH_DISCORD_SECRET: "${AUTH_DISCORD_SECRET:?set AUTH_DISCORD_SECRET}"
AUTH_SECRET: "${AUTH_SECRET:?set AUTH_SECRET}"
AUTH_URL: "${AUTH_URL:-http://localhost:3000}"
BOTFLEET_ADMIN_DISCORD_IDS: "${BOTFLEET_ADMIN_DISCORD_IDS:-}"
worker-ai:
build:
context: .
dockerfile: apps/control-plane/Dockerfile
command: ["npm", "run", "worker:ai"]
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: "postgresql://botfleet:botfleet@db:5432/botfleet"
REDIS_URL: "redis://redis:6379"
BOTFLEET_ENCRYPTION_KEY: "${BOTFLEET_ENCRYPTION_KEY:?set BOTFLEET_ENCRYPTION_KEY in your shell or .env}"
# The WebSocket server remote apps/agent processes connect outbound to
# (docs/agent-installation.md). Not part of the `app` service - it's a
# separate long-running process (npm run agent-gateway), same as
# worker-ai above. `apps/agent` itself deliberately has no service
# here: it's meant to run on the remote machines it manages, not
# co-located with the control plane's own stack.
agent-gateway:
build:
context: .
dockerfile: apps/control-plane/Dockerfile
command: ["npm", "run", "agent-gateway"]
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "4010:4010"
environment:
DATABASE_URL: "postgresql://botfleet:botfleet@db:5432/botfleet"
REDIS_URL: "redis://redis:6379"
BOTFLEET_ENCRYPTION_KEY: "${BOTFLEET_ENCRYPTION_KEY:?set BOTFLEET_ENCRYPTION_KEY in your shell or .env}"
volumes:
botfleet-db: