From cd18eb81feb2a3e8a87ad286cc2dbd61b2664268 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Mon, 6 Nov 2023 10:03:23 +0100 Subject: [PATCH] Allow port configuration by env var --- compose.env-dist | 1 + compose.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 compose.env-dist diff --git a/compose.env-dist b/compose.env-dist new file mode 100644 index 0000000..952b14a --- /dev/null +++ b/compose.env-dist @@ -0,0 +1 @@ +PORT=8087 diff --git a/compose.yaml b/compose.yaml index 98ef3a4..40765f0 100644 --- a/compose.yaml +++ b/compose.yaml @@ -16,7 +16,7 @@ services: volumes: - ./resources/heliopropa.nginx.docker:/etc/nginx/conf.d/default.conf ports: - - "8080:80" + - "${PORT:-8080}:80" depends_on: - web -- libgit2 0.21.2