From a482c55c9ec3fb93286e49f6bd86ea8479e58561 Mon Sep 17 00:00:00 2001
From: TonyFord <tonyford@strategy-investor.de>
Date: Thu, 25 Jun 2020 13:20:47 +0200
Subject: [PATCH] add port in FAIRCOIN_CONF again

---
 Dockerfile         | 9 ++-------
 docker-compose.yml | 3 +--
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index bad580e..a0e15a0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -58,15 +58,10 @@ WORKDIR /home/faircoin/faircoin/src
 RUN mv ./faircoind /home/faircoin/faircoind
 RUN mv ./faircoin-cli /home/faircoin/faircoin-cli
 
-
-# RUN mkdir -p /home/faircoin/.faircoin2
-# RUN chown -R faircoin:faircoin /home/faircoin/.faircoin2
-# RUN echo "TTT $FAIRCOIN_CONF" > /home/faircoin/.faircoin2/inf.conf
-
 WORKDIR /home/faircoin
 ARG FAIRCOIN_CONF
-ARG FAIRCOIN_PORT
-RUN ./faircoind -daemon -disablewallet -reindex -port=$FAIRCOIN_PORT && \
+
+RUN ./faircoind -daemon -disablewallet -reindex && \
     sleep 60 && \
     ./faircoin-cli stop && \
     sleep 10
diff --git a/docker-compose.yml b/docker-compose.yml
index 3481c11..4bb06fb 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -9,10 +9,9 @@ services:
         source_repository: "https://github.com/faircoin/faircoin.git"
         GITLAB_RUNNER_UID: "${GITLAB_RUNNER_UID}"
         GITLAB_RUNNER_GID: "${GITLAB_RUNNER_GID}"
-        FAIRCOIN_PORT: 40414
     container_name: FairCoin.Co-faircoind
     restart: always
-    command: '-disablewallet -conf="${FAIRCOIN_CONF}" -port=40414'
+    command: '-disablewallet -conf="${FAIRCOIN_CONF}"'
 #    command: '-disablewallet -conf="${FAIRCOIN_CONF}" -blocknotify="${BLOCKNOTIFY}"'
     network_mode: "host"
     user: "${GITLAB_RUNNER_UID}:${GITLAB_RUNNER_GID}"
-- 
GitLab