update postgres containers

This commit is contained in:
2026-03-31 12:57:57 -05:00
parent 96009b7692
commit ee296d77ac
2 changed files with 18 additions and 18 deletions
+16 -16
View File
@@ -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
View File
@@ -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