services: notify-bridge: image: git.dolgolyov-family.by/alexei.dolgolyov/notify-bridge:latest # For local builds instead of pulling from registry: # build: . container_name: notify-bridge restart: unless-stopped ports: - "8420:8420" volumes: - notify-bridge-data:/data environment: - NOTIFY_BRIDGE_SECRET_KEY=${NOTIFY_BRIDGE_SECRET_KEY:?Set NOTIFY_BRIDGE_SECRET_KEY (min 32 chars)} - NOTIFY_BRIDGE_CORS_ALLOWED_ORIGINS=${NOTIFY_BRIDGE_CORS_ALLOWED_ORIGINS:-*} healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8420/api/health')"] interval: 30s timeout: 5s retries: 3 start_period: 10s volumes: notify-bridge-data: