From f7ec0bcd90204ddece9c671743e7fe8c62186674 Mon Sep 17 00:00:00 2001
From: TonyFord <tonyford@strategy-investor.de>
Date: Mon, 15 Mar 2021 18:29:19 +0100
Subject: [PATCH] set env vars default values in docker-compose

---
 docker-compose.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index bacf926..f474eb4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,16 +7,16 @@ services:
       context: ./
       args:
         source_repository: "https://github.com/faircoin/faircoin.git"
-        RUNNER_UID: "${RUNNER_UID}"
-        RUNNER_GID: "${RUNNER_GID}"
-        FAIRCOIN_PORT: ${FAIRCOIN_PORT}
+        RUNNER_UID: "${RUNNER_UID:-1000}"
+        RUNNER_GID: "${RUNNER_GID:-1000}"
+        FAIRCOIN_PORT: ${FAIRCOIN_PORT:-40404}
     env_file:
       - ${FAIRCOIN_CONF}
     container_name: FairCoin.Co-faircoind
     restart: always
-    command: '-disablewallet -port=${FAIRCOIN_PORT} -blocknotify=/home/faircoin/script/blocknotify.sh'
+    command: '-disablewallet -port=${FAIRCOIN_PORT:-40404} -blocknotify=/home/faircoin/script/blocknotify.sh'
     network_mode: "host"
-    user: "${RUNNER_UID}:${RUNNER_GID}"
+    user: "${RUNNER_UID:-1000}:${RUNNER_GID:-1000}"
     volumes:
       - ~/.faircoin2:/home/faircoin/.faircoin2
       - ./script:/home/faircoin/script
-- 
GitLab