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
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,20 @@ services:
postgres:
condition: service_healthy

redis:
image: redis:8-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
env_file: ./docker/redis.env
command: /bin/sh -c "redis-server --requirepass $$HITOBITO_REDIS_PASSWORD"

volumes:
postgres:
seed:
hitobito_bundle:
external: true
hitobito_yarn_cache:
external: true
redis_data:
1 change: 1 addition & 0 deletions docker/rails/env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RAILS_DB_PORT=5432
RAILS_DB_USERNAME=hitobito
RAILS_DB_PASSWORD=hitobito
RAILS_DB_NAME=hitobito_development
RAILS_ACTIONCABLE_REDIS_URL=redis://hitobito_redis@redis:6379/1
MEMCACHE_SERVERS=cache
RAILS_HOST_NAME=localhost:3000
RAILS_MAIL_DOMAIN=localhost
Expand Down
1 change: 1 addition & 0 deletions docker/redis.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HITOBITO_REDIS_PASSWORD=hitobito_redis