docker-postgres-cluster
docker-postgres-cluster copied to clipboard
Starting own built images won't work due to missing pgpool files
During build process the necessary configuration files will be added by Dockerfile: ADD files/pgpool2/pgpool.conf /etc/pgpool2/ ADD files/pgpool2/pool_hba.conf /etc/pgpool2/
On Container startup there are volumes wich will be mapped to the host system. This mapping will overlap the internal path /etc/pgpool and so on the existing configuration files are no longer visible inside the container.
Possible solutions (not tested):
-
During build process it is necessary to copy the files to a different location. Inside one of the init scripts these files can be copied to the mapped folder after volume is mapped. So these files will be copied to the host filesystem and on container restart back again inside the container.
-
remove volume for /etc/pgool2 in composer files