diff --git a/compose.cn.yml b/compose.cn.yml index d95c3c6..299108e 100644 --- a/compose.cn.yml +++ b/compose.cn.yml @@ -73,7 +73,7 @@ services: networks: - judge4c healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] + test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ] interval: 5s timeout: 2s retries: 20 diff --git a/compose.yml b/compose.yml index 2a6af9f..ad854d9 100644 --- a/compose.yml +++ b/compose.yml @@ -59,7 +59,7 @@ services: interval: 10s timeout: 5s retries: 5 - + postgres: image: postgres:16-alpine container_name: postgres @@ -73,7 +73,7 @@ services: networks: - judge4c healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] + test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ] interval: 5s timeout: 2s retries: 20