54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
|
version: "3"
|
||
|
|
||
|
services:
|
||
|
|
||
|
syncserver:
|
||
|
image: mozilla/syncserver:latest
|
||
|
volumes:
|
||
|
- ${VOLUMES_PATH}/firefoxsync_syncserver:/data
|
||
|
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"
|
||
|
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
|
||
|
- SYNCSERVER_DEBUG_ENABLED=true
|
||
|
- 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:
|
||
|
- ${VOLUMES_PATH}/firefoxsync_db:/var/lib/postgresql/data
|
||
|
user: ${UID}:${GID}
|
||
|
labels:
|
||
|
- "docker.group=firefoxsync"
|
||
|
|
||
|
|
||
|
networks:
|
||
|
firefoxsync:
|
||
|
web:
|
||
|
external: true
|
||
|
|