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: