selfhost/firefoxsync/docker-compose.yaml
2024-12-06 16:02:20 +01:00

48 lines
1.2 KiB
YAML

services:
syncserver:
image: mozilla/syncserver:latest
volumes:
- ${STORAGE_PATH}/syncserver:/data
user: ${UID}:${GID}
networks:
- web
- firefoxsync
labels:
- "docker.group=firefoxsync"
restart: unless-stopped
environment:
- SYNCSERVER_PUBLIC_URL=https://${FQDN_FIREFOXSYNC}
- SYNCSERVER_SECRET=&{SECRET}
- SYNCSERVER_SQLURI=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
- SYNCSERVER_BATCH_UPLOAD_ENABLED=true
- SYNCSERVER_FORCE_WSGI_ENVIRON=true
- SYNCSERVER_DEBUG_ENABLED=false
- SYNCSERVER_ALLOW_NEW_USER=true
- PORT=5000
db:
image: postgres:${POSTGRES_VERSION}
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
networks:
- firefoxsync
volumes:
- ${STORAGE_PATH}/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
labels:
- "docker.group=firefoxsync"
networks:
firefoxsync:
web:
external: true