Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ x-shared:
SOLR_PORT: 8983
SOLR_HOST: solr
RAILS_LOG_LEVEL: info # debug, info, warn, error or fatal
REDIS_URL: redis://redis:6379/0
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379/0
env_file:
- docker/db.env
- docker/redis.env
volumes:
- seek-filestore:/seek/filestore
- seek-cache:/seek/tmp/cache
Expand Down Expand Up @@ -56,16 +57,23 @@ services:
redis:
image: redis:8.6-alpine
container_name: seek-session-store
command: ["redis-server", "--appendonly", "yes"]
command:
- redis-server
- --appendonly
- "yes"
- --requirepass
- "${REDIS_PASSWORD}"
env_file:
- docker/redis.env
volumes:
- seek-redis-data:/data
restart: always
healthcheck:
test:
[
"CMD",
"redis-cli",
"ping"
"redis-cli -a \"$${REDIS_PASSWORD}\"",
"ping | grep PONG"
]
interval: 5s
timeout: 3s
Expand Down
1 change: 1 addition & 0 deletions docker/redis.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REDIS_PASSWORD=seek_redis_password
Loading