Browse Source
Add Postgres connect_timeout for M1 "Can't reach database" error (#1472)
* Add postgres connect_timeout
* Update changelog
pull/1967/head
Delena Malan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
3 deletions
-
.env.example
-
CHANGELOG.md
-
docker/docker-compose.build.yml
-
docker/docker-compose.yml
|
@ -12,5 +12,5 @@ POSTGRES_PASSWORD=<INSERT_POSTGRES_PASSWORD> |
|
|
|
|
|
|
|
|
ACCESS_TOKEN_SALT=<INSERT_RANDOM_STRING> |
|
|
ACCESS_TOKEN_SALT=<INSERT_RANDOM_STRING> |
|
|
ALPHA_VANTAGE_API_KEY= |
|
|
ALPHA_VANTAGE_API_KEY= |
|
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer |
|
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer |
|
|
JWT_SECRET_KEY=<INSERT_RANDOM_STRING> |
|
|
JWT_SECRET_KEY=<INSERT_RANDOM_STRING> |
|
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
## Unreleased |
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
|
|
|
|
- Added a connection timeout to the environment variable `DATABASE_URL` |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
- Improved the _Select all_ activities checkbox state after importing activities including a duplicate |
|
|
- Improved the _Select all_ activities checkbox state after importing activities including a duplicate |
|
|
|
@ -5,7 +5,7 @@ services: |
|
|
env_file: |
|
|
env_file: |
|
|
- ../.env |
|
|
- ../.env |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=prefer |
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer |
|
|
NODE_ENV: production |
|
|
NODE_ENV: production |
|
|
REDIS_HOST: 'redis' |
|
|
REDIS_HOST: 'redis' |
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD} |
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD} |
|
|
|
@ -5,7 +5,7 @@ services: |
|
|
env_file: |
|
|
env_file: |
|
|
- ../.env |
|
|
- ../.env |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=prefer |
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer |
|
|
NODE_ENV: production |
|
|
NODE_ENV: production |
|
|
REDIS_HOST: 'redis' |
|
|
REDIS_HOST: 'redis' |
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD} |
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD} |
|
|