Skip to content

Commit

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

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

0 comments on commit 9986ef8

Please sign in to comment.