From 457c996ecba0e53f79b28dac46f773b2d28c7d49 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Wed, 20 Jan 2021 02:41:50 +0100 Subject: [PATCH] add sample docker-compose.yml --- compose/docker-compose.yml | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 compose/docker-compose.yml diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml new file mode 100644 index 0000000..e9e297b --- /dev/null +++ b/compose/docker-compose.yml @@ -0,0 +1,58 @@ +version: '3.8' +services: + seafile: + image: ggogel/seafile:8.0.2 + 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 + - 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-data/seafile/seahub-data/avatars:/usr/share/caddy/media/avatars + - seafile-data/seafile/seahub-data/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: + driver: overlay + internal: true + +volumes: + seafile-data: + seafile-mariadb: \ No newline at end of file