Files
2026-07-30 20:06:34 +02:00

37 lines
970 B
YAML

services:
project-bus:
build:
context: ..
dockerfile: deploy/Dockerfile
restart: unless-stopped
environment:
PROJECT_BUS_BOOTSTRAP_TOKEN: "${PROJECT_BUS_BOOTSTRAP_TOKEN:?set a strong bootstrap token}"
PROJECT_BUS_TOKENS_JSON: "${PROJECT_BUS_TOKENS_JSON:-}"
PROJECT_BUS_ALLOWED_ORIGINS: "${PROJECT_BUS_ALLOWED_ORIGINS:-}"
PROJECT_BUS_LOG_LEVEL: "${PROJECT_BUS_LOG_LEVEL:-INFO}"
ports:
- "127.0.0.1:8080:8080"
volumes:
- project-bus-data:/data
read_only: true
tmpfs:
- /tmp:size=16m,noexec,nosuid,nodev
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test:
- CMD
- python
- -c
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/healthz', timeout=2)"
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
stop_grace_period: 15s
volumes:
project-bus-data: