1/4/2024 0 Comments Postgres docker githubWith persistence in use, if the container is stopped and started, for the container continue to function as a slave you need to ensure that REPLICATION_MODE=slave is defined in the containers environment.The value of REPLICATION_USER and REPLICATION_PASS should be the same as the ones specified on the master node.The default value of REPLICATION_SSLMODE is prefer.The default value of REPLICATION_PORT is 5432.In the above command, we used docker links so that we can address the master node using the master alias in REPLICATION_HOST. env 'REPLICATION_USER=repluser ' -env 'REPLICATION_PASS=repluserpass ' \ env 'REPLICATION_HOST=master ' -env 'REPLICATION_PORT=5432 ' \ env 'REPLICATION_MODE=slave ' -env 'REPLICATION_SSLMODE=prefer ' \ Note: Builds are also available on Quay.ioĭocker run -name postgresql-slave01 -itd -restart always \ Please state if you are using Boot2Docker, VirtualBox, etc.Īutomated builds of the image are available on Dockerhub and is the recommended method of installation.The docker run command or docker-compose.yml used to start the image.Output of the docker vers6 and docker info commands.If the above recommendations do not help then report your issue along with the following information: SELinux users should try disabling SELinux using the command setenforce 0 to see if it resolves the issue. Refer to the Docker installation guide for instructions. Support the development of this image with a donationīefore reporting your issue please try updating Docker to the latest version and check if it resolves the issue.Send a pull request with your awesome features and bug fixes.If you find this image useful here's how you can help: PostgreSQL is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. Dockerfile to create a Docker container image for PostgreSQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |