From c20cf02d9f95da1f1dbb37446ad165d919c63e8f Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 2 Apr 2026 03:49:38 +0800 Subject: [PATCH] chore: update Docker Compose configuration - Use postgres:18-alpine image - Update environment variable format - Rename volume from pgdata to postgres_data - Increase healthcheck interval to 10s --- compose.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/compose.yaml b/compose.yaml index bfad65b..cf34e86 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,23 +5,25 @@ services: db: condition: service_healthy ports: - - '3000:3000' + - "3000:3000" environment: - DATABASE_URL: postgres://postgres:postgres@db:5432/postgres + - DATABASE_URL=postgres://postgres:postgres@db:5432/postgres db: - image: postgres:18 + image: postgres:18-alpine + # ports: + # - "5432:5432" volumes: - - pgdata:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres healthcheck: - test: [ 'CMD', 'pg_isready', '-U', 'postgres' ] - interval: 5s + test: [ "CMD", "pg_isready", "-U", "postgres" ] + interval: 10s timeout: 5s retries: 5 volumes: - pgdata: + postgres_data: