Skip to content

Commit

Permalink
Add redis-sentinel service
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Oct 7, 2024
1 parent 31d5b21 commit 194d7f2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions redis-sentinel/.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REDIS_MASTER_PASSWORD=redispassword
1 change: 1 addition & 0 deletions redis-sentinel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/data
21 changes: 21 additions & 0 deletions redis-sentinel/compose.redis-sentinel.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
volumes:
common-redis-sentinel:
name: 'common-redis-sentinel'

services:
redis-sentinel:
image: bitnami/redis:${REDIS_IMAGE_TAG:-7.4.1}
env_file:
- .env
depends_on:
- redis
- redis-slave
networks:
common-net:
aliases:
- common-redis-sentinel
# ports:
# - 127.0.0.1:${REDIS_SENTINEL_PUBLISH_PORT:-26379}:26379
volumes:
- common-redis-sentinel:/bitnami/redis/data
# - ./data:/bitnami/redis/data

0 comments on commit 194d7f2

Please sign in to comment.