Skip to content

Commit

Permalink
update docker compose to support aclfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode committed Apr 18, 2024
1 parent 646401a commit d121710
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2,280 deletions.
7 changes: 5 additions & 2 deletions configs/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ docker-build:
docker build -t ncode/bedel:dev .

up:
echo > redis/redis0001.acl
echo > redis/redis0002.acl
echo > redis/redis0003.acl
docker compose up

dowm:
docker compose dowm
down:
docker compose down
9 changes: 6 additions & 3 deletions configs/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ services:
- "6379:6379"
volumes:
- ./redis:/usr/local/etc/redis:rw
command: redis-server /usr/local/etc/redis/redis.conf
command:
- "redis-server"
- "/usr/local/etc/redis/redis0001.conf"

redis0002:
image: redis:latest
Expand All @@ -17,7 +19,7 @@ services:
- ./redis:/usr/local/etc/redis:rw
command:
- "redis-server"
- "/usr/local/etc/redis/redis.conf"
- "/usr/local/etc/redis/redis0002.conf"
- "--slaveof"
- "redis0001"
- "6379"
Expand All @@ -29,7 +31,7 @@ services:
- ./redis:/usr/local/etc/redis:rw
command:
- "redis-server"
- "/usr/local/etc/redis/redis.conf"
- "/usr/local/etc/redis/redis0003.conf"
- "--slaveof"
- "redis0001"
- "6379"
Expand Down Expand Up @@ -69,6 +71,7 @@ services:
- vault
command:
- "run"
- "--aclfile"
environment:
ADDRESS: "redis0003:6379"
PASSWORD: "bedel-integration-test"
Expand Down
Loading

0 comments on commit d121710

Please sign in to comment.