From e1ea5c402cef96422be22ae52e38a0a57513728b Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Wed, 31 May 2023 20:29:37 +0200 Subject: [PATCH] feat: add env variable to customize the proxy public ports --- .env.example | 4 ++++ docker-compose.prod.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index b3e69464b..1031c6683 100644 --- a/.env.example +++ b/.env.example @@ -29,6 +29,10 @@ JWT_SECRET=b0JDZW56RnV6aEthb0RGPXVEcUI BASE_URL=https://bigcapital.ly CONTACT_US_MAIL=support@bigcapital.ly +# App proxy +PUBLIC_PROXY_PORT=80 +PUBLIC_PROXY_SSL_PORT=443 + # Agendash AGENDASH_AUTH_USER=agendash AGENDASH_AUTH_PASSWORD=123123 diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 157d4ab1b..8e492480f 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -15,14 +15,14 @@ services: - ./data/logs/nginx/:/var/log/nginx - ./docker/certbot/certs/:/var/certs ports: - - "80:80" - - "443:443" + - "${PUBLIC_PROXY_PORT:-80}:80" + - "${PUBLIC_PROXY_SSL_PORT:-443}:443" tty: true depends_on: - server - webapp - webapp: + webapp: container_name: bigcapital-webapp image: ghcr.io/bigcapitalhq/webapp:latest