This commit is contained in:
Yax 2021-11-01 18:41:59 +01:00
parent 8bb670d33e
commit 9bd9f23d9e
2 changed files with 21 additions and 30 deletions

16
seafile/docker-compose.seafile.yml Normal file → Executable file
View file

@ -32,6 +32,8 @@ 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
@ -40,12 +42,14 @@ services:
- 80
volumes:
- seafile_data:/shared:rw
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
- type: bind
source: ${ROOT_INSTALL}/data/seafile-fuse
target: /seafile-fuse
bind:
propagation: rshared
privileged: true
cap_add:
- SYS_ADMIN
volumes:
seafile_db: