From fcf1ff127b5f2208626ea59add54ec51d4a7cb3b Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 24 Jun 2025 13:52:19 +0200 Subject: [PATCH] Honor EXPOSE_HOST and EXPOSE_PORT setup in Docker Compose configuration The ghostfolio container has been exposed to `0.0.0.0:3333` regardless of the `HOST` and `PORT` settings. Fix the respective `ports` directive by introducing `EXPOSE_HOST` and `EXPOSE_PORT`. --- docker/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8c69e5420..444f32f23 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -12,14 +12,14 @@ services: env_file: - ../.env ports: - - 3333:3333 + - ${EXPOSE_HOST:-0.0.0.0}:${EXPOSE_PORT:-3333}:${PORT:-3333} depends_on: postgres: condition: service_healthy redis: condition: service_healthy healthcheck: - test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + test: ['CMD-SHELL', 'curl -f http://localhost:$${PORT:-3333}/api/v1/health'] interval: 10s timeout: 5s retries: 5