2022-02-11 15:43:55 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
syncserver:
|
|
|
|
image: mozilla/syncserver:latest
|
|
|
|
volumes:
|
2023-06-05 14:57:29 +02:00
|
|
|
- ${VOLUMES_PATH}/firefoxsync/syncserver:/data
|
2022-02-11 15:43:55 +01:00
|
|
|
user: ${UID}:${GID}
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- firefoxsync
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.ffs.rule=Host(`firefoxsync.${DOMAIN}`)"
|
|
|
|
- "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"
|
2024-06-26 12:34:44 +02:00
|
|
|
- "diun.enable=true"
|
2022-02-11 15:43:55 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- SYNCSERVER_PUBLIC_URL=https://firefoxsync.${DOMAIN}
|
|
|
|
- SYNCSERVER_SECRET=&{SECRET}
|
|
|
|
- SYNCSERVER_SQLURI=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
|
|
|
|
- SYNCSERVER_BATCH_UPLOAD_ENABLED=true
|
|
|
|
- SYNCSERVER_FORCE_WSGI_ENVIRON=true
|
2023-06-05 14:57:29 +02:00
|
|
|
- SYNCSERVER_DEBUG_ENABLED=false
|
2022-02-11 15:43:55 +01:00
|
|
|
- SYNCSERVER_ALLOW_NEW_USER=true
|
|
|
|
- PORT=5000
|
|
|
|
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:13
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
networks:
|
|
|
|
- firefoxsync
|
|
|
|
volumes:
|
2023-06-05 14:57:29 +02:00
|
|
|
- ${VOLUMES_PATH}/firefoxsync/db:/var/lib/postgresql/data
|
2022-02-11 15:43:55 +01:00
|
|
|
user: ${UID}:${GID}
|
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"
|
2024-06-26 12:34:44 +02:00
|
|
|
- "diun.enable=true"
|
2022-02-11 15:43:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
firefoxsync:
|
|
|
|
web:
|
|
|
|
external: true
|
|
|
|
|