Browse Source

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`.
pull/5017/head
Stefan Haun 1 week ago
parent
commit
fcf1ff127b
  1. 4
      docker/docker-compose.yml

4
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

Loading…
Cancel
Save