2021-01-23 18:49:37 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
seafile-server:
|
2024-01-28 09:40:19 +00:00
|
|
|
image: ggogel/seafile-server:11.0.4
|
2021-01-23 18:49:37 +00:00
|
|
|
volumes:
|
|
|
|
- seafile-data:/shared
|
|
|
|
environment:
|
|
|
|
- DB_HOST=db
|
|
|
|
- DB_ROOT_PASSWD=db_dev
|
|
|
|
- TIME_ZONE=Europe/Berlin
|
|
|
|
- SEAFILE_ADMIN_EMAIL=me@example.com
|
|
|
|
- SEAFILE_ADMIN_PASSWORD=asecret
|
|
|
|
- HTTPS=false # Set this to true if you plan to use a reverse proxy with HTTPS. Can be changed later in the admin settings on the web-ui.
|
2023-11-05 13:07:51 +00:00
|
|
|
- SEAFILE_URL=seafile.mydomain.com # Mandatory on first deployment!
|
2021-01-23 18:49:37 +00:00
|
|
|
networks:
|
|
|
|
- seafile-net
|
2021-01-25 14:14:12 +00:00
|
|
|
deploy:
|
|
|
|
endpoint_mode: dnsrr
|
2021-01-23 18:49:37 +00:00
|
|
|
|
|
|
|
seahub:
|
2024-02-17 12:17:55 +00:00
|
|
|
image: ggogel/seahub:11.0.5
|
2021-01-23 18:49:37 +00:00
|
|
|
volumes:
|
|
|
|
- seafile-data:/shared
|
|
|
|
- seahub-avatars:/shared/seafile/seahub-data/avatars
|
|
|
|
- seahub-custom:/shared/seafile/seahub-data/custom
|
2021-01-27 23:44:04 +00:00
|
|
|
environment:
|
|
|
|
- SEAFILE_ADMIN_EMAIL=me@example.com
|
|
|
|
- SEAFILE_ADMIN_PASSWORD=asecret
|
2021-01-23 18:49:37 +00:00
|
|
|
networks:
|
|
|
|
- seafile-net
|
|
|
|
deploy:
|
2021-01-24 23:58:28 +00:00
|
|
|
mode: replicated
|
|
|
|
replicas: 4
|
|
|
|
endpoint_mode: dnsrr
|
2021-01-23 18:49:37 +00:00
|
|
|
|
|
|
|
seahub-media:
|
|
|
|
image: ggogel/seahub-media
|
|
|
|
volumes:
|
|
|
|
- seahub-avatars:/usr/share/caddy/media/avatars
|
|
|
|
- seahub-custom:/usr/share/caddy/media/custom
|
|
|
|
networks:
|
|
|
|
- seafile-net
|
|
|
|
deploy:
|
2021-01-24 23:58:28 +00:00
|
|
|
mode: replicated
|
|
|
|
replicas: 2
|
|
|
|
endpoint_mode: dnsrr
|
2021-01-23 18:49:37 +00:00
|
|
|
|
|
|
|
db:
|
2024-02-13 00:34:51 +00:00
|
|
|
image: mariadb:10.11.7
|
2021-01-23 18:49:37 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=db_dev
|
|
|
|
- MYSQL_LOG_CONSOLE=true
|
2023-04-20 11:41:06 +00:00
|
|
|
- MARIADB_AUTO_UPGRADE=true
|
2021-01-23 18:49:37 +00:00
|
|
|
volumes:
|
|
|
|
- seafile-mariadb:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- seafile-net
|
|
|
|
|
|
|
|
memcached:
|
2024-01-17 09:44:04 +00:00
|
|
|
image: memcached:1.6.23
|
2021-01-23 18:49:37 +00:00
|
|
|
entrypoint: memcached -m 1024
|
|
|
|
networks:
|
|
|
|
- seafile-net
|
|
|
|
|
|
|
|
seafile-caddy:
|
2023-12-10 00:56:39 +00:00
|
|
|
image: ggogel/seafile-caddy:2.7.6
|
2021-01-24 23:58:28 +00:00
|
|
|
environment:
|
|
|
|
- SWARM_DNS=true
|
2021-01-23 18:49:37 +00:00
|
|
|
networks:
|
|
|
|
- seafile-net
|
|
|
|
- caddy
|
|
|
|
deploy:
|
|
|
|
labels:
|
|
|
|
caddy: http://seafile.gogel.me
|
|
|
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
seafile-net:
|
2021-01-24 23:58:28 +00:00
|
|
|
driver: overlay
|
2021-01-23 18:49:37 +00:00
|
|
|
internal: true
|
|
|
|
caddy:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
seafile-data:
|
|
|
|
driver: glusterfs
|
|
|
|
name: "seafile-data"
|
|
|
|
seafile-mariadb:
|
|
|
|
driver: glusterfs
|
|
|
|
name: "seafile-mariadb"
|
|
|
|
seahub-avatars:
|
|
|
|
driver: glusterfs
|
|
|
|
name: "seafile-data/seafile/seahub-data/avatars"
|
|
|
|
seahub-custom:
|
|
|
|
driver: glusterfs
|
|
|
|
name: "seafile-data/seafile/seahub-data/custom"
|
|
|
|
|