Skip to content

Commit

Permalink
fix: use dragonfly.env for dragonfly specific environment
Browse files Browse the repository at this point in the history
  • Loading branch information
RatulSaqibKhan committed Nov 17, 2024
1 parent f58eda2 commit f6b131a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,3 @@ SFTP_VOLUME_DATA_DIR=./sftp-data

NAMED_VOLUME_TO_BACKUP=common-mysql-db
NAMED_VOLUME_TO_RESTORE=common-mysql-db

# =============================================================

DRAGONFLY_PASSWORD=
4 changes: 4 additions & 0 deletions .envs/dragonfly.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Use DFLY as prefix for any command as envoronment variable
# Reference: https://github.com/dragonflydb/dragonfly/discussions/2089
# Commands: https://www.dragonflydb.io/docs/managing-dragonfly/flags
DFLY_requirepass=dragonflypass
3 changes: 2 additions & 1 deletion docker-compose.override.dragonfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ services:

dragonfly:
image: 'docker.dragonflydb.io/dragonflydb/dragonfly'
env_file:
- .envs/dragonfly.env
ulimits:
memlock: -1
command: ["--requirepass", "${DRAGONFLY_PASSWORD:dragonflypass}"]
volumes:
- common-dragonfly-db:/data
networks:
Expand Down

0 comments on commit f6b131a

Please sign in to comment.