diff --git a/compose.dev.yml b/compose.dev.yml index 070d6302..a67bb479 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -1,6 +1,6 @@ services: postgres: - image: postgres:16-alpine + image: postgres:18-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres @@ -8,7 +8,7 @@ services: ports: - "5432:5432" volumes: - - postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s diff --git a/deployment/compose.postgres.yml b/deployment/compose.postgres.yml index c6e1d3a0..2ca6c88e 100644 --- a/deployment/compose.postgres.yml +++ b/deployment/compose.postgres.yml @@ -52,7 +52,7 @@ services: restart: unless-stopped postgres: - image: postgres:16 + image: postgres:18 env_file: - ./.env environment: @@ -60,7 +60,7 @@ services: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB} volumes: - - postgres-data:/var/lib/postgresql/data + - postgres-data:/var/lib/postgresql healthcheck: test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""] interval: 30s