diff --git a/README.md b/README.md index d2f5394ff..91787d943 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,13 @@ We provide official container images hosted on [Docker Hub](https://hub.docker.c ### Supported Environment Variables | Name | Type | Default Value | Description | -| ------------------------ | --------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +|--------------------------| --------------------- |---------------|-------------------------------------------------------------------------------------------------------------------------------------| | `ACCESS_TOKEN_SALT` | `string` | | A random string used as salt for access tokens | | `API_KEY_COINGECKO_DEMO` | `string` (optional) |   | The _CoinGecko_ Demo API key | | `API_KEY_COINGECKO_PRO` | `string` (optional) | | The _CoinGecko_ Pro API key | | `DATABASE_URL` | `string` | | The database connection URL, e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer` | +| `EXPOSE_HOST` | `string` (optional) | `0.0.0.0` | The host where the Ghostfolio application will be exposed by Docker | +| `EXPOSE_PORT` | `string` (optional) | `3333` | The port where the Ghostfolio application will be exposed by Docker | | `HOST` | `string` (optional) | `0.0.0.0` | The host where the Ghostfolio application will run on | | `JWT_SECRET_KEY` | `string` | | A random string used for _JSON Web Tokens_ (JWT) | | `LOG_LEVELS` | `string[]` (optional) | | The logging levels for the Ghostfolio application, e.g. `["debug","error","log","warn"]` | 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