diff --git a/.env.example b/.env.example index 713826f50..8df547e37 100644 --- a/.env.example +++ b/.env.example @@ -9,8 +9,7 @@ REDIS_PASSWORD= POSTGRES_DB=ghostfolio-db POSTGRES_USER=user POSTGRES_PASSWORD= -POSTGRES_PORT=5432 ACCESS_TOKEN_SALT= -DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:${POSTGRES_PORT}/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer JWT_SECRET_KEY= diff --git a/README.md b/README.md index 71c464836..87e6c7d1b 100644 --- a/README.md +++ b/README.md @@ -87,20 +87,19 @@ We provide official container images hosted on [Docker Hub](https://hub.docker.c ### Supported Environment Variables -| Name | Default Value | Description | -| ------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `ACCESS_TOKEN_SALT` | | A random string used as salt for access tokens | -| `DATABASE_URL` | | The database connection URL, e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:${POSTGRES_PORT}/${POSTGRES_DB}?sslmode=prefer` | -| `HOST` | `0.0.0.0` | The host where the Ghostfolio application will run on | -| `JWT_SECRET_KEY` | | A random string used for _JSON Web Tokens_ (JWT) | -| `PORT` | `3333` | The port where the Ghostfolio application will run on | -| `POSTGRES_DB` | | The name of the _PostgreSQL_ database | -| `POSTGRES_PASSWORD` | | The password of the _PostgreSQL_ database | -| `POSTGRES_PORT` | | The port of the _PostgreSQL_ database | -| `POSTGRES_USER` | | The user of the _PostgreSQL_ database | -| `REDIS_HOST` | | The host where _Redis_ is running | -| `REDIS_PASSWORD` | | The password of _Redis_ | -| `REDIS_PORT` | | The port where _Redis_ is running | +| Name | Default Value | Description | +| ------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `ACCESS_TOKEN_SALT` | | A random string used as salt for access tokens | +| `DATABASE_URL` | | The database connection URL, e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer` | +| `HOST` | `0.0.0.0` | The host where the Ghostfolio application will run on | +| `JWT_SECRET_KEY` | | A random string used for _JSON Web Tokens_ (JWT) | +| `PORT` | `3333` | The port where the Ghostfolio application will run on | +| `POSTGRES_DB` | | The name of the _PostgreSQL_ database | +| `POSTGRES_PASSWORD` | | The password of the _PostgreSQL_ database | +| `POSTGRES_USER` | | The user of the _PostgreSQL_ database | +| `REDIS_HOST` | | The host where _Redis_ is running | +| `REDIS_PASSWORD` | | The password of _Redis_ | +| `REDIS_PORT` | | The port where _Redis_ is running | ### Run with Docker Compose diff --git a/docker/docker-compose.build.yml b/docker/docker-compose.build.yml index a5fc620ef..6bb158ddd 100644 --- a/docker/docker-compose.build.yml +++ b/docker/docker-compose.build.yml @@ -5,7 +5,7 @@ services: env_file: - ../.env environment: - DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer + DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer NODE_ENV: production REDIS_HOST: redis REDIS_PASSWORD: ${REDIS_PASSWORD} diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index cb17137fd..d0be3965d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -5,7 +5,7 @@ services: env_file: - ../.env environment: - DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer + DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer NODE_ENV: production REDIS_HOST: redis REDIS_PASSWORD: ${REDIS_PASSWORD}