update postgres containers
This commit is contained in:
+16
-16
@@ -15,22 +15,22 @@ services:
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
profiles: [postgres]
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_DB: announcements
|
||||
POSTGRES_USER: announcements
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U announcements"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
# Uncomment when testing postgres
|
||||
# postgres:
|
||||
# image: pgautoupgrade/pgautoupgrade:18-alpine
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
# environment:
|
||||
# POSTGRES_DB: announcements
|
||||
# POSTGRES_USER: announcements
|
||||
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
|
||||
# volumes:
|
||||
# - postgres-data:/var/lib/postgresql
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "pg_isready -U announcements"]
|
||||
# interval: 5s
|
||||
# timeout: 3s
|
||||
# retries: 5
|
||||
|
||||
server:
|
||||
build:
|
||||
|
||||
+2
-2
@@ -16,14 +16,14 @@ services:
|
||||
retries: 5
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
image: pgautoupgrade/pgautoupgrade:18-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: announcements
|
||||
POSTGRES_USER: announcements
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- postgres-data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U announcements"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user