Sign inSign up

xlievo/postgres

By xlievo

•Updated about 6 years ago

postgres

Image
0

1.2K

xlievo/postgres repository overview

Create log mount directories:

mkdir -p /root/workspace/pg_log && chown -R 999 /root/workspace/pg_log && mkdir -p /root/workspace/pg_backups && chown -R 999 /root/workspace/pg_backups

master: docker run --restart=always -d --name db -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -p 5920:5432 -v /root/workspace/db:/var/lib/postgresql/data -v /root/workspace/pg_log:/log -v /root/workspace/pg_backups:/backups xlievo/postgres:latest -c 'shared_buffers=2048MB' -c 'max_connections=5000'

slave: docker run --restart=always -d --name db2 -e POSTGRES_USER=root -p 5921:5432 -v /root/workspace/db2:/var/lib/postgresql/data -v /root/workspace/pg_log:/log -v /root/workspace/pg_backups:/backups -e SHOST=172.17.0.1 -e SPORT=5920 -e SPASSWORD=e3980c76 xlievo/postgres:latest -c 'shared_buffers=2048MB' -c 'max_connections=5000'

1: master/slave

2: Install zombodb plug-in https://github.com/zombodb/zombodb⁠

3: Open logs and regularly delete log files, you can mount /log directories

4: Automatic backup and regularly delete backup files, you can mount /backups directories

See /var/lib/postgresql/data/postgresql.ex.conf

⁠https://github.com/docker-library/postgres⁠

⁠Maintained by: the PostgreSQL Docker Community⁠

This is the Git repo of the Docker "Official Image"⁠ for postgres⁠ (not to be confused with any official postgres image provided by postgres upstream). See the Docker Hub page⁠ for the full readme on how to use this Docker image and for information regarding contributing and issues.

The full description from Docker Hub⁠ is generated over in docker-library/docs⁠, specifically in docker-library/docs/postgres⁠.

⁠See a change merged here that doesn't show up on Docker Hub yet?

Check the "library/postgres" manifest file in the docker-library/official-images repo⁠, especially PRs with the "library/postgres" label on that repo⁠.

For more information about the official images process, see the docker-library/official-images readme⁠.


Tag summary

Content type

Image

Digest

Size

116.7 MB

Last updated

about 6 years ago

docker pull xlievo/postgres