Skip to content

A Pgpool-II docker image base on alpine linux.

License

Notifications You must be signed in to change notification settings

pngmbh/docker-pgpool2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-pgpool2

A Pgpool-II docker image base on alpine linux.

Environments will be used to fill the following template and generate the corresponding config files:

  • /usr/share/pgpool2/pcp.conf.template
  • /usr/share/pgpool2/pgpool.conf.template
  • /usr/share//pgpool2/pool_hba.conf.template

Usage

$ docker run -d --name pgpool \
         --env PGPOOL_BACKENDS=pg1:5432:5,pg2:5432:5,pg3:5432:5 \
         extvos/pgpool2

Environment Ref:

ENV PCP_PORT 9898
ENV PCP_USERNAME postgres
ENV PCP_PASSWORD postgres
ENV PGPOOL_PORT 5432
ENV PGPOOL_BACKENDS postgres:5432:10
ENV TRUST_NETWORK 0.0.0.0/0

ENV NUM_INIT_CHILDREN 32
ENV MAX_POOL 4
ENV CHILD_LIFE_TIME 300
ENV CHILD_MAX_CONNECTIONS 0
ENV CONNECTION_LIFE_TIME 0
ENV CLIENT_IDLE_LIMIT 0

About

A Pgpool-II docker image base on alpine linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 73.1%
  • Shell 26.9%