Upgrade postgres docker compose (#749)

* Upgrade PG to latest stable version alpine
This commit is contained in:
Adi
2023-07-03 12:39:15 +02:00
committed by GitHub
parent fe7427a1f2
commit 487e098b96
6 changed files with 18 additions and 12 deletions

View File

@ -62,7 +62,7 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data:/var/lib/postgresql/data/
restart: always
@ -70,8 +70,9 @@ services:
POSTGRES_USER: mediacms
POSTGRES_PASSWORD: mediacms
POSTGRES_DB: mediacms
TZ: Europe/London
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mediacms"]
test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5