How to pass idle_session_timeout in postgres docker in a compose file? - Mailing list pgsql-admin

From Debraj Manna
Subject How to pass idle_session_timeout in postgres docker in a compose file?
Date
Msg-id CAF6DVKMbVSdiWZrrvgheDaE21kaYoOt7gJGiGOrHv585Z=Pj_w@mail.gmail.com
Whole thread Raw
List 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 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@pgadmin.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

pgsql-admin by date:

Previous
From: Victor Sudakov
Date:
Subject: Re: Upgrading Patroni from 2.1.x to 3.0.1 ?
Next
From: richard coleman
Date:
Subject: PostgreSQL equivalents to dbms_metadata.get_ddl & dbms_metadata.get_dependent_ddl