fix(overrides): update PostgreSQL to v15 and improve v16 compatibility

This commit is contained in:
nishanthabimanyu 2026-03-06 05:11:19 +00:00
parent c315c72eaa
commit b4e0501c3d

View file

@ -2,13 +2,29 @@ services:
configurator:
environment:
DB_HOST: db
DB_PORT: 5432
DB_PORT: "5432"
DB_TYPE: postgres
command:
- >
ls -1 apps > sites/apps.txt;
bench set-config -g db_type postgres;
bench set-config -g db_host $$DB_HOST;
bench set-config -gp db_port $$DB_PORT;
bench set-config -g redis_cache "redis://$$REDIS_CACHE";
bench set-config -g redis_queue "redis://$$REDIS_QUEUE";
bench set-config -g redis_socketio "redis://$$REDIS_QUEUE";
bench set-config -gp socketio_port $$SOCKETIO_PORT;
bench set-config -g chromium_path /usr/bin/chromium-headless-shell;
depends_on:
- db
db:
condition: service_healthy
db:
image: postgres:13.5
command: []
image: postgres:15-alpine
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
retries: 5
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:?No db password set}
volumes: