From 199d98bf796540395e309b3c50b362b303c362b5 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Sun, 15 Jan 2023 06:24:56 +0900 Subject: [PATCH] =?UTF-8?q?DB=E3=83=BBRedis=20->=20Misskey=E3=81=AE?= =?UTF-8?q?=E9=A0=86=E3=81=AB=E8=B5=B7=E5=8B=95=E3=81=99=E3=82=8B=20(#9569?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0bf17a5557..efc85c372e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,11 @@ services: - db - redis # - es + depends_on: + db: + condition: service_healthy + redis: + condition: service_healthy ports: - "3000:3000" networks: @@ -24,6 +29,10 @@ services: - internal_network volumes: - ./redis:/data + healthcheck: + test: "redis-cli ping" + interval: 5s + retries: 20 db: restart: always @@ -34,6 +43,10 @@ services: - .config/docker.env volumes: - ./db:/var/lib/postgresql/data + healthcheck: + test: "pg_isready" + interval: 5s + retries: 20 # es: # restart: always