Skip to content

Commit

Permalink
Use Valkey image instead of Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Oct 24, 2024
1 parent 4d2943b commit 78b16eb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ services:
depends_on:
db:
condition: service_healthy
valkey:
condition: service_healthy
volumes:
- .:/app:delegated
- ssh:/tmp/druid_ssh-agent:ro
environment:
APP_ENV: ${APP_ENV:-dev}
DRUSH_OPTIONS_URI: https://${DRUPAL_HOSTNAME}
REDIS_HOST: ${COMPOSE_PROJECT_NAME}-valkey
SIMPLETEST_BASE_URL: http://app:8080
SIMPLETEST_DB: mysql://drupal:drupal@db:3306/drupal
XDEBUG_ENABLE: ${XDEBUG_ENABLE:-false}
BROWSERTEST_OUTPUT_BASE_URL: https://${DRUPAL_HOSTNAME}
labels:
- traefik.enable=true
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.entrypoints=https
Expand All @@ -36,20 +37,20 @@ services:
ports:
- 3306
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-pdrupal"]
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-pdrupal" ]
interval: 5s
timeout: 5s
retries: 5
retries: 3

redis:
container_name: ${COMPOSE_PROJECT_NAME}-redis
image: redis:7-alpine
valkey:
container_name: ${COMPOSE_PROJECT_NAME}-valkey
image: valkey/valkey:8-alpine
healthcheck:
test: '[ "$$(valkey-cli -h 127.0.0.1 ping)" == "PONG" ]'
interval: 1s
timeout: 5s
retries: 5

networks:
stonehenge-network:
external: true

volumes:
ssh:
name: stonehenge-ssh
external: true

0 comments on commit 78b16eb

Please sign in to comment.