diff --git a/client/docker-start.sh b/client/docker-start.sh index 0b2bec8a5..83562c467 100755 --- a/client/docker-start.sh +++ b/client/docker-start.sh @@ -3,6 +3,8 @@ # Integrate environment variables sed -i "s|__BACKEND__|${BACKEND_HOST}|" \ /etc/nginx/nginx.conf +sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \ + /etc/nginx/nginx.conf sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \ /var/www/index.htm \ /var/www/manifest.json diff --git a/client/nginx.conf.docker b/client/nginx.conf.docker index 98c18b35e..de76f9245 100644 --- a/client/nginx.conf.docker +++ b/client/nginx.conf.docker @@ -20,7 +20,7 @@ http { keepalive_timeout 65; upstream backend { - server __BACKEND__:6666; + server __BACKEND__:__BACKEND_PORT__; } server { diff --git a/docker-compose.yml b/docker-compose.yml index 38e08b978..be15edebe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,7 @@ services: - server environment: BACKEND_HOST: server + BACKEND_PORT: 6666 BASE_URL: volumes: - "${MOUNT_DATA}:/data:ro"