seafile-containerized/compose/docker-compose.yml

93 lines
2.1 KiB
YAML
Raw Normal View History

2023-10-19 08:17:51 +00:00
version: '3.8'
services:
seafile-server:
image: ggogel/seafile-server:11.0.5
2023-10-19 08:17:51 +00:00
volumes:
- seafile-data:/shared
2023-10-19 08:17:51 +00:00
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev
- TIME_ZONE=Europe/Berlin
- HTTPS=true
- SEAFILE_URL=seafile.mydomain.com # Mandatory on first deployment!
2023-10-19 08:17:51 +00:00
networks:
- seafile-net
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "8082"]
interval: 10s
timeout: 10s
retries: 3
restart: unless-stopped
2023-10-19 08:17:51 +00:00
seahub:
2024-01-28 09:40:19 +00:00
image: ggogel/seahub:11.0.4
2023-10-19 08:17:51 +00:00
volumes:
- seafile-data:/shared
- seahub-avatars:/shared/seafile/seahub-data/avatars
- seahub-custom:/shared/seafile/seahub-data/custom
2023-10-19 08:17:51 +00:00
environment:
- SEAFILE_ADMIN_EMAIL=me@example.com
- SEAFILE_ADMIN_PASSWORD=asecret
networks:
- seafile-net
depends_on:
db:
condition: service_healthy
seafile-server:
condition: service_healthy
restart: unless-stopped
2023-10-19 08:17:51 +00:00
seahub-media:
2024-01-28 09:40:19 +00:00
image: ggogel/seahub-media:11.0.4
2023-10-19 08:17:51 +00:00
volumes:
- seahub-avatars:/usr/share/caddy/media/avatars
- seahub-custom:/usr/share/caddy/media/custom
2023-10-19 08:17:51 +00:00
networks:
- seafile-net
restart: unless-stopped
2023-10-19 08:17:51 +00:00
db:
2024-02-13 00:34:51 +00:00
image: mariadb:10.11.7
2023-10-19 08:17:51 +00:00
environment:
- MYSQL_ROOT_PASSWORD=db_dev
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=true
volumes:
- seafile-mariadb:/var/lib/mysql
networks:
- seafile-net
healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 10s
retries: 3
restart: unless-stopped
2023-10-19 08:17:51 +00:00
memcached:
2024-01-17 09:44:04 +00:00
image: memcached:1.6.23
2023-10-19 08:17:51 +00:00
entrypoint: memcached -m 1024
networks:
- seafile-net
restart: unless-stopped
2023-10-19 08:17:51 +00:00
seafile-caddy:
image: ggogel/seafile-caddy:2.7.6
2023-10-19 08:17:51 +00:00
ports:
- "80:80" # Point your reverse proxy to port 80 of this service
networks:
- seafile-net
- default
restart: unless-stopped
2023-10-19 08:17:51 +00:00
networks:
seafile-net:
internal: true
volumes:
seafile-data:
seafile-mariadb:
seahub-avatars:
2021-01-22 23:01:15 +00:00
seahub-custom: