-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.81 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
# Run CBM — Coolify Backup Manager — from the published images.
# This starts the controller + its Postgres. Install one agent per Docker host
# separately (the controller gives you a one-line install command per instance).
#
# 1. cp .env.example .env && fill BETTER_AUTH_SECRET + MASTER_KEY + BETTER_AUTH_URL
# 2. docker compose up -d
# 3. open the URL and create the first account (it becomes the admin)
services:
db:
image: postgres:17-alpine
restart: unless-stopped
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:
image: ghcr.io/holo795/cbm-controller:latest
restart: unless-stopped
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:?generate a base64 32-byte key — see .env.example}
AGENT_IMAGE: ${AGENT_IMAGE:-ghcr.io/holo795/cbm-agent}
AGENT_IMAGE_TAG: ${AGENT_IMAGE_TAG:-latest}
# Optional SMTP for password reset / account verification. Leave unset to
# configure it from Settings → Email in the UI instead. Any value set here
# overrides the UI and locks that field.
SMTP_HOST: ${SMTP_HOST:-}
SMTP_PORT: ${SMTP_PORT:-}
SMTP_SECURE: ${SMTP_SECURE:-}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
SMTP_FROM: ${SMTP_FROM:-}
SMTP_FROM_NAME: ${SMTP_FROM_NAME:-}
expose:
- "3000"
volumes:
cbm-db: