-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.daemon.yml
More file actions
65 lines (62 loc) · 2.1 KB
/
docker-compose.daemon.yml
File metadata and controls
65 lines (62 loc) · 2.1 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
# docker-compose.daemon.yml
# Requires Docker Compose v2.24.0+ for env_file object syntax
#
# Runs pebblify in daemon mode. Start with:
# docker compose -f docker-compose.daemon.yml up -d
#
# Prerequisites:
# - Create config.toml (set save.local.local_save_directory = /var/lib/pebblify/snapshots)
# - Copy systemd/pebblify.env.example to .env.daemon and fill in secrets
# - The .env.daemon file must be mode 0600 and must not be committed to git
services:
pebblify-daemon:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: dev
REVISION: local
image: pebblify:daemon-dev
command: ["daemon"]
env_file:
- path: .env.daemon
required: false
environment:
- PEBBLIFY_CONFIG_PATH=/etc/pebblify/config.toml
- PEBBLIFY_LOG_LEVEL=info
volumes:
# User-supplied TOML config — do not bake into the image
- ./config.toml:/etc/pebblify/config.toml:ro
# Converted snapshot output — named volume for portability and data durability
- pebblify_snapshots:/var/lib/pebblify/snapshots
# Conversion workspace — ephemeral named volume; avoids host /tmp exposure
- pebblify-tmp:/tmp/pebblify
# Ports bound to loopback. To expose publicly, edit or run behind a reverse proxy.
ports:
# Prometheus / telemetry — un-publish if not scraping from this host
- "127.0.0.1:2323:2323"
# REST API — un-publish and front with a reverse proxy in production
- "127.0.0.1:2324:2324"
# Health probes (liveness + readiness) — keep published for orchestrator checks
- "127.0.0.1:2325:2325"
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:2325/healthz"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
deploy:
resources:
limits:
# Starter caps — tune per deployment based on DB size and available hardware.
cpus: "2"
memory: 2G
networks:
- pebblify_net
restart: unless-stopped
volumes:
pebblify_snapshots:
pebblify-tmp:
networks:
pebblify_net:
driver: bridge