Skip to content

Commit

Permalink
Merge pull request #38 from minos-framework/issue-36-modify-redis-doc…
Browse files Browse the repository at this point in the history
…kercompose

#36 - Modify Redis' docker-compose container
  • Loading branch information
albamig authored Mar 8, 2022
2 parents dced520 + 8786484 commit 88127ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/database/redis/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def build_docker_compose(path: Path) -> str:
data = yaml.safe_load(file)

container = {
"image": "docker.io/bitnami/redis:6.2",
"user": "root",
"restart": "always",
"image": "redis:latest",
"volumes": ["redis:/data",],
"environment": {"ALLOW_EMPTY_PASSWORD": "yes", "REDIS_DISABLE_COMMANDS": "FLUSHDB,FLUSHALL"},
"volumes": ["redis:/bitnami/redis/data",],
}

data["services"]["redis"] = container
Expand Down

0 comments on commit 88127ee

Please sign in to comment.