seafile-containerized/compose/docker-compose-dev.yml

93 lines
2 KiB
YAML
Raw Permalink Normal View History

2023-10-18 15:53:14 +00:00
version: '3.8'
services:
seafile-server:
build: ../seafile-server/.
volumes:
- seafile-data:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev
- TIME_ZONE=Europe/Berlin
- HTTPS=false
2024-07-28 12:27:06 +00:00
- SEAFILE_URL=localhost:8080
2023-10-18 15:53:14 +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-18 15:53:14 +00:00
seahub:
build: ../seahub/.
volumes:
- seafile-data:/shared
- seahub-avatars:/shared/seafile/seahub-data/avatars
- seahub-custom:/shared/seafile/seahub-data/custom
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-18 15:53:14 +00:00
seahub-media:
build: ../seahub-media/.
volumes:
- seahub-avatars:/usr/share/caddy/media/avatars
- seahub-custom:/usr/share/caddy/media/custom
networks:
- seafile-net
restart: unless-stopped
2023-10-18 15:53:14 +00:00
db:
2024-08-12 20:21:48 +00:00
image: mariadb:10.11.9
2023-10-18 15:53:14 +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-18 15:53:14 +00:00
memcached:
2024-09-10 03:24:12 +00:00
image: memcached:1.6.31
2023-10-18 15:53:14 +00:00
entrypoint: memcached -m 1024
networks:
- seafile-net
restart: unless-stopped
2023-10-18 15:53:14 +00:00
seafile-caddy:
build: ../seafile-caddy/.
ports:
- "8080:80"
2023-10-18 15:53:14 +00:00
networks:
- seafile-net
- default
restart: unless-stopped
2023-10-18 15:53:14 +00:00
networks:
seafile-net:
internal: true
volumes:
seafile-data:
seafile-mariadb:
seahub-avatars:
seahub-custom: