Skip to content

Commit

Permalink
Upgrade postgres docker compose (#749)
Browse files Browse the repository at this point in the history
* Upgrade PG to latest stable version alpine
  • Loading branch information
Adito5393 committed Jul 3, 2023
1 parent fe7427a commit 487e098
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
5 changes: 3 additions & 2 deletions docker-compose-dev.yaml
Expand Up @@ -32,16 +32,17 @@ services:
db:
condition: service_healthy
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data:/var/lib/postgresql/data/
restart: always
environment:
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
Expand Down
5 changes: 3 additions & 2 deletions docker-compose-http-proxy.yaml
Expand Up @@ -68,16 +68,17 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data/:/var/lib/postgresql/data/
restart: always
environment:
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
Expand Down
5 changes: 3 additions & 2 deletions docker-compose-https-proxy.yaml
Expand Up @@ -70,16 +70,17 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data/:/var/lib/postgresql/data/
restart: always
environment:
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
Expand Down
5 changes: 3 additions & 2 deletions docker-compose-letsencrypt.yaml
Expand Up @@ -90,16 +90,17 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data:/var/lib/postgresql/data/
restart: always
environment:
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: 30s
timeout: 10s
retries: 5
Expand Down
5 changes: 3 additions & 2 deletions docker-compose-named-volumes.yaml
Expand Up @@ -66,16 +66,17 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
restart: always
environment:
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: 30s
timeout: 10s
retries: 5
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yaml
Expand Up @@ -62,16 +62,17 @@ services:
depends_on:
- migrations
db:
image: postgres:13
image: postgres:15.2-alpine
volumes:
- ../postgres_data:/var/lib/postgresql/data/
restart: always
environment:
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
Expand Down

0 comments on commit 487e098

Please sign in to comment.