Files
andros d5377e94eb Initial implementation of push notification backend
Django backend that listens to the relay SSE global stream and dispatches
APNs push notifications to subscribed iOS devices (TestFlight/sandbox).
2026-05-19 09:34:46 +02:00

47 lines
912 B
YAML

services:
django:
build: .
restart: unless-stopped
expose:
- "8000"
env_file:
- .env
volumes:
- .:/app
- ./certs:/app/certs:ro
command: ./entrypoint.sh
healthcheck:
test: ["CMD", "python", "manage.py", "check"]
interval: 30s
timeout: 10s
retries: 3
listener:
build: .
restart: unless-stopped
env_file:
- .env
volumes:
- .:/app
- ./certs:/app/certs:ro
command: python manage.py listen_relay
depends_on:
django:
condition: service_healthy
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "${NGINX_PORT:-8080}:80"
depends_on:
django:
condition: service_healthy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
timeout: 10s
retries: 3