-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.coolify.yml
More file actions
37 lines (35 loc) · 1.08 KB
/
Copy pathdocker-compose.coolify.yml
File metadata and controls
37 lines (35 loc) · 1.08 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
# Production deployment (e.g. on Coolify): controller + its Postgres.
# Deploy one agent per Docker host separately (see Dockerfile.agent / README).
services:
db:
image: postgres:17-alpine
environment:
POSTGRES_USER: cbm
POSTGRES_PASSWORD: ${DB_PASSWORD:-cbm}
POSTGRES_DB: cbm
volumes:
- cbm-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cbm"]
interval: 5s
timeout: 5s
retries: 10
controller:
build:
context: .
dockerfile: Dockerfile.controller
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://cbm:${DB_PASSWORD:-cbm}@db:5432/cbm
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:?set a long random secret}
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-http://localhost:3000}
MASTER_KEY: ${MASTER_KEY:-}
# Image the install command / /install.sh tells hosts to run.
AGENT_IMAGE: ${AGENT_IMAGE:-ghcr.io/holo795/cbm-agent}
AGENT_IMAGE_TAG: ${AGENT_IMAGE_TAG:-latest}
ports:
- "3000:3000"
volumes:
cbm-db: