DB・Redis -> Misskeyの順に起動する (#9569)

This commit is contained in:
Masaya Suzuki 2023-01-15 06:24:56 +09:00 committed by GitHub
parent 3ae798d526
commit 199d98bf79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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