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@xxxxxxxxxxx
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
services:
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
ports:
- "6555:80" # pg admin
- "6432:6432" # postgres-db
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@xxxxxxxxxxx
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