How to pass idle_session_timeout in postgres docker in a compose file?

From: Debraj Manna <subharaj(dot)manna(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: How to pass idle_session_timeout in postgres docker in a compose file?
Date: 2023-03-19 09:02:23
Message-ID: CAF6DVKMbVSdiWZrrvgheDaE21kaYoOt7gJGiGOrHv585Z=Pj_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi

I am using Postgres docker 14.4. My docker-compose file looks like below.
Can someone let me know how I can pass the idle_session_timeout
<https://www.postgresql.org/docs/14/runtime-config-client.html#GUC-IDLE-SESSION-TIMEOUT>
via the compose file?

version: '3'
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
ports:
- "6555:80" # pg admin
- "6432:6432" # postgres-db
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4(at)pgadmin(dot)org
PGADMIN_DEFAULT_PASSWORD: admin

postgres-db:
container_name: test-db
image: postgres:14.4
network_mode: "service:pgadmin"
command: -p 6432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGUSER: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -p 6432"]
interval: 5s
timeout: 5s
retries: 3

Browse pgsql-admin by date

  From Date Subject
Next Message richard coleman 2023-03-19 21:36:17 PostgreSQL equivalents to dbms_metadata.get_ddl & dbms_metadata.get_dependent_ddl
Previous Message Victor Sudakov 2023-03-19 07:28:21 Re: Upgrading Patroni from 2.1.x to 3.0.1 ?