更改postgres容器。
This commit is contained in:
@@ -45,8 +45,10 @@ services:
|
||||
- ./postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- frontend
|
||||
ports:
|
||||
- 5433:5432
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -57,4 +59,4 @@ volumes:
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
external: true
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user