selfhost/firefoxsync/docker-compose.yaml

55 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2022-02-11 15:43:55 +01:00
services:
syncserver:
image: mozilla/syncserver:latest
volumes:
- ${STORAGE_PATH}/syncserver:/data
2022-02-11 15:43:55 +01:00
user: ${UID}:${GID}
networks:
- web
- firefoxsync
labels:
- "traefik.enable=true"
2024-10-24 15:46:51 +02:00
- "traefik.http.routers.ffs.rule=Host(`${FQDN_FIREFOXSYNC}`)"
2022-02-11 15:43:55 +01:00
- "traefik.http.routers.ffs.entrypoints=websecure"
- "traefik.http.routers.ffs.tls.certresolver=netcup"
- "traefik.http.routers.ffs.tls.options=intermediate@file"
- "traefik.http.services.ffs.loadbalancer.server.port=5000"
- "docker.group=firefoxsync"
restart: unless-stopped
environment:
2024-10-24 15:46:51 +02:00
- SYNCSERVER_PUBLIC_URL=https://${FQDN_FIREFOXSYNC}
2022-02-11 15:43:55 +01:00
- 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
2022-02-11 15:43:55 +01:00
- SYNCSERVER_ALLOW_NEW_USER=true
- PORT=5000
db:
2024-10-15 13:16:14 +02:00
image: postgres:${POSTGRES_VERSION}
2022-02-11 15:43:55 +01:00
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
2023-06-09 08:58:54 +02:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
2022-02-11 15:43:55 +01:00
labels:
- "docker.group=firefoxsync"
networks:
firefoxsync:
web:
external: true