soapbox/compose.yaml
Ole-Morten Duesund 4d9b6f9d90 run.sh: automatisk backup med rotasjon, og --restart=always
Før hver oppstart eksporteres datavolumet til
SOAPBOX_BACKUP_DIR/soapbox-data-<UTC-tidsstempel>.tar.gz; de
SOAPBOX_BACKUP_KEEP nyeste beholdes (standard 5, 0 = av). Bind-mounts
pakkes med tar, navngitte volum med podman volume export.

--restart unless-stopped byttet til --restart=always i run.sh og
compose.yaml: podman håndterer ikke unless-stopped som docker.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR
2026-08-26 14:41:16 +02:00

15 lines
377 B
YAML

# Alternativ til run.sh: podman compose up -d
# Leser innstillinger fra .env (kopier .env.example).
services:
soapbox:
image: localhost/soapbox:latest
container_name: soapbox
restart: always
ports:
- "127.0.0.1:${SOAPBOX_PORT:-8080}:8080"
volumes:
- ${SOAPBOX_VOLUME:-soapbox-data}:/data:Z
env_file:
- .env
volumes:
soapbox-data: