seafile-containerized/compose/docker-compose.yml
2021-01-20 22:22:00 +01:00

61 lines
1.4 KiB
YAML

version: '3.8'
services:
seafile:
image: ggogel/seafile:8.0.2
volumes:
- seafile-data:/shared
- seafile-avatars:/seafile/seahub-data/avatars
- seafile-custom:/seafile/seahub-data/custom
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev
- TIME_ZONE=Europe/Berlin
- SEAFILE_ADMIN_EMAIL=me@example.com
- SEAFILE_ADMIN_PASSWORD=asecret
- SEAFILE_SERVER_HOSTNAME=seafile.mydomain.com # Mandatory on first deployment!
depends_on:
- db
- memcached
networks:
- seafile-net
seahub-media:
image: ggogel/seahub-media:8.0.2
volumes:
- seafile-avatars:/usr/share/caddy/media/avatars
- seafile-custom:/usr/share/caddy/media/custom
networks:
- seafile-net
db:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=db_dev
- MYSQL_LOG_CONSOLE=true
volumes:
- seafile-mariadb:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:latest
entrypoint: memcached -m 1024
networks:
- seafile-net
caddy:
image: ggogel/seafile-caddy
ports:
- 80:80 # Point your reverse proxy to port 80 of this service
networks:
- seafile-net
networks:
seafile-net:
internal: true
volumes:
seafile-data:
seafile-mariadb:
seafile-avatars:
seafile-custom: