|
@@ -32,7 +32,7 @@ services:
|
|
|
db:
|
|
|
condition: service_healthy
|
|
|
db:
|
|
|
- image: postgres:13
|
|
|
+ image: postgres:15.2-alpine
|
|
|
volumes:
|
|
|
- ../postgres_data:/var/lib/postgresql/data/
|
|
|
restart: always
|
|
@@ -40,8 +40,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
|