Skip to content

Commit

Permalink
Add redis to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Apr 3, 2024
1 parent eddf35f commit 6c0fc5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ x-cm-variables: &cm
PALACE_SECRET_KEY: "SECRET_KEY_USED_FOR_ADMIN_UI_COOKIES"
PALACE_PATRON_WEB_HOSTNAMES: "*"
PALACE_BASE_URL: "http://localhost:6500"
PALACE_CELERY_BROKER_URL: "redis://redis:6379/0"
PALACE_CELERY_CM_NAME: "test"

# Set up the environment variables used for testing as well
SIMPLIFIED_TEST_DATABASE: "postgresql://palace:test@pg:5432/circ"
Expand All @@ -31,6 +33,8 @@ x-cm-variables: &cm
condition: service_healthy
os:
condition: service_healthy
redis:
condition: service_healthy

x-cm-build: &cm-build
context: .
Expand Down Expand Up @@ -93,8 +97,19 @@ services:
environment:
discovery.type: "single-node"
DISABLE_SECURITY_PLUGIN: "true"
bootstrap.memory_lock: "true"
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
DISABLE_INSTALL_DEMO_CONFIG: "true"
healthcheck:
test: curl --silent http://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5

redis:
image: "redis:7"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 20s
retries: 3

0 comments on commit 6c0fc5d

Please sign in to comment.