Painted-Fox / docker-postgresql

A dockerfile that produces a docker image that runs postgresql.
MIT License
72 stars 57 forks source link

Ability to run as master/slave #4

Open jonmorehouse opened 10 years ago

jonmorehouse commented 10 years ago

Ability to run container as a master, slave, or public-slave (public reads only).

Docker run -e SERVER_TYPE="PUBLIC_SLAVE" ... paintedfox/postgresql
Docker run -e SERVER_TYPE="MASTER" ... paintedfox/postgresql
Docker run -e SERVER_TYPE="PUBLIC" ... paintedfox/postgresql

Planning to build this out over the weekend, but wanted thoughts first

Painted-Fox commented 10 years ago

I've actually never setup more than one instance of PostgreSQL. I think this will be very helpful for larger deployments of PostgreSQL, but I lack the experience to have much of an opinion on the best way to implement this.

jonmorehouse commented 10 years ago

hopefully its not too awfully hard. I'll see what I can come up with over the weekend!

jonmorehouse commented 10 years ago

haven't forgotten about this feature - going to hack this up when I get a chance this week / weekend.