From f9482cac633c291fe69984a223058988d5915b01 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 28 Jul 2022 21:27:26 +0100 Subject: [PATCH] Add Portainer Git directory to env file --- docker-compose.yml | 2 +- stack.env | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7bce405..1982dee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: image: pathogen/threshold build: . volumes: - - .:/code + - ${PORTAINER_GIT_DIR}:/code ports: - "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}" - "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}" diff --git a/stack.env b/stack.env index f13b650..cdc5bd8 100644 --- a/stack.env +++ b/stack.env @@ -10,3 +10,4 @@ THRESHOLD_RELAY_SSL=1 THRESHOLD_API_ENABLED=1 THRESHOLD_API_HOST=0.0.0.0 THRESHOLD_API_PORT=13869 +PORTAINER_GIT_DIR=. \ No newline at end of file