mfvanek / pg-index-health-demo

Demo apps for pg-index-health library
Apache License 2.0
9 stars 2 forks source link

Setup PostgreSQL cluster in docker compose for local development #208

Open mfvanek opened 2 years ago

mfvanek commented 2 years ago

See https://hub.docker.com/r/paunin/postgresql-cluster-pgsql/ and https://habr.com/ru/post/334484/

Evreke commented 2 years ago

I am working on mfvanek/pg-index-health#121 and faced some problems trying to start cluster from resources provided by you.

postgres-cluste-pgsql it looks nice, but it hasn't been updated for a long time, so the latest version doesn't work, since some changes have been made to the repositories referenced by docker files.

pg-dock is not working either but seems more simpler to fix than first one.

There are two ways i see.

  1. Fix one of two provided solutions to use them.
  2. Provide new solution.

Personally i prefer first way.

mfvanek commented 2 years ago

@Evreke Let's take a look at bitnami containers https://github.com/bitnami/bitnami-docker-postgresql

Evreke commented 2 years ago

For local development you can use default bitnami postgresql container with repmgr. It works like a charm. I used it working on mfvanek/pg-index-health#121

Evreke commented 1 year ago

Sorry, I've been busy for a long time. I am starting to work on this task. @mfvanek

Evreke commented 1 year ago

With afb84a5 I add plugin that searches and run containers defined in docker-compose file.

This approach hash drawbacks:

But advantages are: