Feature/enable redis authentication in docker compose files (#2805)

* Enable redis authentication in docker-compose files

* Update changelog
pull/2828/head
psychowood 5 months ago committed by GitHub
parent 371f1dc451
commit 9bf68b0d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added support for REST APIs (`JSON`) via the scraper configuration - Added support for REST APIs (`JSON`) via the scraper configuration
- Enabled the _Redis_ authentication in the `docker-compose` files
### Changed ### Changed

@ -29,8 +29,11 @@ services:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
redis: redis:
image: redis:alpine image: redis:alpine
env_file:
- ../.env
command: ['redis-server', '--requirepass', $REDIS_PASSWORD]
healthcheck: healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] test: ['CMD-SHELL', 'redis-cli --pass $REDIS_PASSWORD ping | grep PONG']
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5

@ -14,6 +14,9 @@ services:
image: redis:alpine image: redis:alpine
container_name: redis container_name: redis
restart: unless-stopped restart: unless-stopped
env_file:
- ../.env
command: ['redis-server', '--requirepass', $REDIS_PASSWORD]
ports: ports:
- ${REDIS_PORT:-6379}:6379 - ${REDIS_PORT:-6379}:6379

@ -29,8 +29,11 @@ services:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
redis: redis:
image: redis:alpine image: redis:alpine
env_file:
- ../.env
command: ['redis-server', '--requirepass', $REDIS_PASSWORD]
healthcheck: healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] test: ['CMD-SHELL', 'redis-cli --pass $REDIS_PASSWORD ping | grep PONG']
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5

Loading…
Cancel
Save