webdav/stack.production.yml

45 lines
1.4 KiB
YAML

# build 0
version: '3.7'
networks:
traefik:
external: true
services:
sync:
# build: ./syncthing/
image: git.nixc.us/colin/syncthing:production
# expose:
# - 8384
hostname: sync
ports:
- "22000:22000"
- "21027:21027/udp"
volumes:
- "/mnt/tank/persist/nixc.us/sync/production/config:/var/syncthing/config"
- "/mnt/tank/persist/nixc.us/vault/production/otng:/otng"
- "/mnt/tank/persist/nixc.us/vault/production/data:/vault/:ro"
- "/mnt/tank/persist/nixc.us/vault/production/storage:/var/syncthing/storage"
networks:
- traefik
deploy:
replicas: 1
placement:
constraints:
- node.hostname == ingress.nixc.us
labels:
traefik.docker.network: traefik
traefik.enable: "true"
traefik.http.routers.production_sync.entrypoints: websecure
traefik.http.routers.production_sync.rule: Host(`sync.nixc.us`)
traefik.http.routers.production_sync.service: production_sync
traefik.http.routers.production_sync.tls: "true"
traefik.http.routers.production_sync.tls.certresolver: letsencryptresolver
traefik.http.services.production_sync.loadbalancer.server.port: '8384'
traefik.tags: traefik
traefik.http.routers.production_sync.middlewares: authelia_authelia@docker
# logging:
# driver: "gelf"
# options:
# gelf-address: "udp://log.nixc.us:15124"
# tag: "sync_sync"