use volumes for seafile data

This commit is contained in:
Yax 2020-07-18 13:41:21 +02:00
parent bd893fe0eb
commit 3c28194216
2 changed files with 9 additions and 2 deletions

View file

@ -25,3 +25,6 @@ DB_ROOT_PASSWORD=rootpassword
ADMIN_EMAIL=root@localdomain
# seafile
SEAFILE_ADMIN_PASSWORD=abc123456
SEAFILE_REGULAR_USER=johndoe
SEAFILE_REGULAR_PASSWORD=johnpassword
SEAFILE_PHOTO_LIBRARY=12345678

View file

@ -10,7 +10,7 @@ services:
networks:
- srv
volumes:
- ${ROOT_INSTALL}/data/seafile/mysql/db:/var/lib/mysql:rw
- seafile_db:/var/lib/mysql:rw
seafile-memcached:
container_name: seafile-memcached
entrypoint: memcached -m 256
@ -36,10 +36,14 @@ services:
expose:
- 80
volumes:
- ${ROOT_INSTALL}/data/seafile/data:/shared:rw
- 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
volumes:
seafile_db:
seafile_data: