Browse Source

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

* Enable redis authentication in docker-compose files

* Update changelog
pull/2828/head
psychowood 1 year ago
committed by GitHub
parent
commit
9bf68b0d20
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 5
      docker/docker-compose.build.yml
  3. 3
      docker/docker-compose.dev.yml
  4. 5
      docker/docker-compose.yml

1
CHANGELOG.md

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

5
docker/docker-compose.build.yml

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

3
docker/docker-compose.dev.yml

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

5
docker/docker-compose.yml

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

Loading…
Cancel
Save