Skip to content

Commit

Permalink
Update compose Redis
Browse files Browse the repository at this point in the history
We want to run Redis in CI rather than rely on the fake redis gem.

We also want the major version of Redis to match that in production (7)
locally and in CI.
  • Loading branch information
mec committed Nov 22, 2024
1 parent 2313184 commit c0f6f91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backing-services-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:4
image: redis:7
ports:
- "6379:6379"
volumes:
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,20 @@ services:
environment:
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
DATABASE_URL: postgres://postgres:password@db:5432/roda_test
REDIS_URL: redis://redis:6379
env_file:
- .env.test
networks:
- test-ci
db:
image: postgres:13
environment:
POSTGRES_PASSWORD: password
networks:
- test-ci
redis:
image: redis:7
networks:
- test-ci
networks:
test-ci:

0 comments on commit c0f6f91

Please sign in to comment.