back to traefik

This commit is contained in:
Yax 2021-11-01 19:10:42 +01:00
parent 9bd9f23d9e
commit 4c2bdef32e
16 changed files with 171 additions and 60 deletions

View file

@ -32,8 +32,6 @@ services:
SEAFILE_SERVER_HOSTNAME: ${HOST_SEAFILE}.${DOMAIN}
SEAFILE_SERVER_LETSENCRYPT: "false"
TIME_ZONE: ${TZ}
VIRTUAL_HOST: ${HOST_SEAFILE}.${DOMAIN}
LETSENCRYPT_HOST: ${HOST_SEAFILE}.${DOMAIN}
image: seafileltd/seafile-mc:latest
networks:
- srv
@ -50,7 +48,13 @@ services:
privileged: true
cap_add:
- SYS_ADMIN
labels:
- traefik.enable=true
- traefik.http.routers.seafile.rule=Host(`${HOST_SEAFILE}.${DOMAIN}`)
- traefik.http.routers.seafile.entrypoints=websecure
- traefik.http.routers.seafile.tls=true
- traefik.http.services.seafile.loadbalancer.server.port=80
volumes:
seafile_db:
seafile_data:
seafile_data: