From fa3e30cc079dfc5aa2a34422a9f6e1675ea30a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Sun, 18 Jan 2026 10:27:14 +0800 Subject: [PATCH] docker file --- docker-compose-with-pgsql.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose-with-pgsql.yml b/docker-compose-with-pgsql.yml index 0728d4d..f15ac75 100644 --- a/docker-compose-with-pgsql.yml +++ b/docker-compose-with-pgsql.yml @@ -11,10 +11,10 @@ services: ports: - "5432:5432" volumes: - - ../postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql/data restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "pg_isready -U agent_db"] + test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 @@ -47,6 +47,5 @@ services: timeout: 10s retries: 3 start_period: 40s - volumes: - postgres_data: + postgres_data: