Skip to content

Commit

Permalink
Add redis-slave service
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Oct 7, 2024
1 parent b2ff7c7 commit 4d651e7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions redis-slave/.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
REDIS_REPLICATION_MODE=slave
REDIS_MASTER_HOST=common-redis
REDIS_MASTER_PORT_NUMBER=6379
REDIS_MASTER_PASSWORD=redispassword
REDIS_PASSWORD=redispassword
1 change: 1 addition & 0 deletions redis-slave/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/data
18 changes: 18 additions & 0 deletions redis-slave/compose.redis-slave.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
volumes:
common-redis-slave:
name: 'common-redis-slave'

services:
redis-slave:
image: bitnami/redis:${REDIS_IMAGE_TAG:-7.4.1}
env_file:
- .env
networks:
common-net:
aliases:
- common-redis-slave
# ports:
# - 127.0.0.1:${REDIS_PUBLISH_PORT:-6380}:6379
volumes:
- common-redis-slave:/bitnami/redis/data
# - ./data:/bitnami/redis/data

0 comments on commit 4d651e7

Please sign in to comment.