From b452a2ac8c100130f698cc69aca58885c46a1a16 Mon Sep 17 00:00:00 2001 From: Noelle Wang <73260931+No767@users.noreply.github.com> Date: Mon, 23 Sep 2024 08:22:39 -0700 Subject: [PATCH] Add required Redis ports (#11) --- docker/docker-compose.prod.yml | 2 ++ docker/docker-compose.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 6cad110..728ce28 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -40,6 +40,8 @@ services: image: redis:7-alpine healthcheck: test: redis-cli ping || exit 1 + ports: + - 6379:6379 restart: always kanae-prometheus: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index b3534b2..ee2b223 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -11,6 +11,7 @@ services: - 8000:8000 depends_on: - database + - redis # Safety script to fully wait until PostgreSQL is up command: sh -c '/kanae/wait-for database:5432 -- echo "[Wait-for] PostgreSQL is fully up. Waiting for Redis" && /kanae/wait-for redis:6379 -- echo "[Wait-for] Both PostgreSQL and Redis are fully ready. Starting up Kanae" && /kanae/start.sh' restart: always @@ -39,6 +40,9 @@ services: image: redis:7-alpine healthcheck: test: redis-cli ping || exit 1 + ports: + - 6379:6379 + restart: always volumes: - database: \ No newline at end of file + database: