Commit d5a8b31b authored by Ignacio's avatar Ignacio
Browse files

Añade tcp_keepalives_idle para no cerrar conexiones

parent 00b064c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ LABEL maintainer="info@redmic.es"
ENV PG_PORT="5432" \
	PG_MAX_CONNECTIONS="400" \
	PG_SHARED_PRELOAD_LIBRARIES="pg_cron" \
	TCP_KEEPALIVES_IDLE="36000" \
	POSTGRES_USER="postgres" \
	POSTGRES_PASSWORD="password" \
	PG_POSTGIS_VERSION="2.5" \
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ max_connections = ${PG_MAX_CONNECTIONS} # (change requires restart)
# - TCP Keepalives -
# see "man 7 tcp" for details

#tcp_keepalives_idle = 0		# TCP_KEEPIDLE, in seconds;
tcp_keepalives_idle = ${TCP_KEEPALIVES_IDLE}		# TCP_KEEPIDLE, in seconds;
					# 0 selects the system default
#tcp_keepalives_interval = 0		# TCP_KEEPINTVL, in seconds;
					# 0 selects the system default