syncova-ticket/compose.yaml
Weapie 9c561cb574
All checks were successful
Tests und Docker-Image / Tests und Frontend-Build (push) Successful in 2m8s
Tests und Docker-Image / Leeres Produktionsimage bauen und veröffentlichen (push) Successful in 4m28s
Add Syncova Ticket with tested Gitea image publishing and persistent Compose deployment
2026-11-03 17:04:00 +01:00

51 lines
1.4 KiB
YAML

services:
syncova:
image: ${SYNCOVA_IMAGE:-git.jfritzsche.de/jf/syncova-ticket:latest}
pull_policy: ${SYNCOVA_PULL_POLICY:-always}
restart: unless-stopped
init: true
ports:
- '${SYNCOVA_BIND:-127.0.0.1}:${SYNCOVA_PORT:-3002}:3001'
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 3001
TZ: Europe/Berlin
DB_PATH: /app/data/syncova.db
SMTP_KEY_FILE: /app/data/smtp.key
SMTP_ENCRYPTION_KEY: ${SMTP_ENCRYPTION_KEY:-}
APP_ORIGIN: ${APP_ORIGIN:-http://localhost:3002}
COOKIE_SECURE: ${COOKIE_SECURE:-false}
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@example.org}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?Bitte ADMIN_PASSWORD in .env.docker setzen}
MAIL_MODE: development
volumes:
- syncova_data:/app/data
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,size=64m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
stop_grace_period: 45s
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://127.0.0.1:3001/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 15s
timeout: 5s
start_period: 20s
retries: 3
logging:
driver: json-file
options:
max-size: '10m'
max-file: '3'
volumes:
syncova_data: