add development docker compose file

This commit is contained in:
Gerrit Gogel 2023-10-18 17:53:14 +02:00
parent 4705d85c52
commit 743e1fe56c

View file

@ -0,0 +1,79 @@
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
- SEAFILE_SERVER_HOSTNAME=localhost
depends_on:
- db
- memcached
- seafile-caddy
networks:
- seafile-net
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
depends_on:
- seafile-server
- seafile-caddy
- seahub-media
networks:
- seafile-net
seahub-media:
build: ../seahub-media/.
volumes:
- seahub-avatars:/usr/share/caddy/media/avatars
- seahub-custom:/usr/share/caddy/media/custom
depends_on:
- seafile-caddy
networks:
- seafile-net
db:
image: mariadb:10.11.5
environment:
- MYSQL_ROOT_PASSWORD=db_dev
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=true
volumes:
- seafile-mariadb:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:1.6.22
entrypoint: memcached -m 1024
networks:
- seafile-net
seafile-caddy:
build: ../seafile-caddy/.
ports:
- "80:80"
networks:
- seafile-net
- default
networks:
seafile-net:
internal: true
volumes:
seafile-data:
seafile-mariadb:
seahub-avatars:
seahub-custom: