From 0f28b6296d7ed7481362729ddfdfc09006bb1f41 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 9 Apr 2020 07:57:52 +0200 Subject: [PATCH] Remove hardcoded values --- config.py | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 7289846c..ca4fb620 100644 --- a/config.py +++ b/config.py @@ -20,7 +20,7 @@ class Config: ''' ### Opaque ### ''' NOPAQUE_ADMIN = os.environ.get('NOPAQUE_ADMIN') - NOPAQUE_STORAGE = '/mnt/dind_swarm/nopaque' + NOPAQUE_STORAGE = os.environ.get('NOPAQUE_STORAGE') @staticmethod def init_app(app): diff --git a/docker-compose.yml b/docker-compose.yml index dd255691..3ece850f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: - default - reverse-proxy volumes: - - "/mnt/dind_swarm/nopaque:/mnt/dind_swarm/nopaque" + - "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/nopaque" - "./app:/home/nopaque/app" - "./logs:/home/nopaque/logs" - "./migrations:/home/nopaque/migrations" @@ -38,7 +38,7 @@ services: - "host.docker.internal:172.17.0.1" image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest volumes: - - "/mnt/dind_swarm/nopaque:/mnt/dind_swarm/nopaque" + - "/mnt/dind-swarm/nopaque:/mnt/dind-swarm/nopaque" - "./logs:/home/nopaqued/logs" - "../opaque_daemon/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh" - "../opaque_daemon/nopaqued.py:/home/nopaqued/nopaqued.py"