From 8a2a33f2f29b9808d728adbbc3c39f8d0d575058 Mon Sep 17 00:00:00 2001 From: Vaishno Chaitanya Date: Fri, 1 Jul 2022 12:44:25 +0530 Subject: [PATCH] Added fallback value for DATA_DIR env. --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 79b6bbf..ebfb92a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: volumes: - ./web/wait-for-it.sh:/usr/local/bin/wait-for-it.sh:ro - /dev/urandom:/dev/random - - ${DATA_DIR}/web:/var/www/MISP + - ${DATA_DIR:-./data}/web:/var/www/MISP environment: - MYSQL_HOST=${MYSQL_HOST:-misp_db} - MYSQL_DATABASE=${MYSQL_DATABASE:-misp} @@ -33,9 +33,13 @@ services: hostname: ${MYSQL_HOST:-misp_db} restart: unless-stopped volumes: - - ${DATA_DIR}/db:/var/lib/mysql + - ${DATA_DIR:-./data}/db:/var/lib/mysql environment: - MYSQL_DATABASE=${MYSQL_DATABASE:-misp} - MYSQL_USER=${MYSQL_USER:-misp} - MYSQL_PASSWORD=${MYSQL_PASSWORD:-misp} - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-misp} + +volumes: + web: + db: