From 529c00356f9112fe8a5b1a61d4c14b79fabe127b Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Thu, 28 Jan 2021 00:44:04 +0100 Subject: [PATCH] move first admin env variables to seahub service, remove depends_on depends_on is ignored on swarm --- compose/docker-compose-swarm.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/compose/docker-compose-swarm.yml b/compose/docker-compose-swarm.yml index eba3ff4..70baef8 100644 --- a/compose/docker-compose-swarm.yml +++ b/compose/docker-compose-swarm.yml @@ -12,9 +12,6 @@ services: - 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. - SEAFILE_SERVER_HOSTNAME=seafile.mydomain.com # Mandatory on first deployment! - depends_on: - - db - - memcached networks: - seafile-net deploy: @@ -26,8 +23,9 @@ services: - seafile-data:/shared - seahub-avatars:/shared/seafile/seahub-data/avatars - seahub-custom:/shared/seafile/seahub-data/custom - depends_on: - - seafile + environment: + - SEAFILE_ADMIN_EMAIL=me@example.com + - SEAFILE_ADMIN_PASSWORD=asecret networks: - seafile-net deploy: