thegraphnetwork / EpiGraphHub

Software platform to Gather, transmform, harmonize and store epidemiological data for analytical purposes.
https://epigraphhub.org
GNU General Public License v3.0
8 stars 10 forks source link

chore(docker): add postgresql service properly #108

Open xmnlab opened 2 years ago

xmnlab commented 2 years ago

This PR aims to add a production service for postgresql.

Changes:

it resolves #105

Assumptions:

  • bind mount, example: - /var/lib/postgresql/data/pgdata:/var/lib/postgresql/data/pgdata
  • named volume, example: - pgdata:/var/lib/postgresql/data/pgdata
xmnlab commented 2 years ago

@fccoelho after some investigation I decided to pick the named volume approach.

fccoelho commented 2 years ago

Sounds good to me

fccoelho commented 2 years ago

We need to validate this well in the staging server, so that we don't risk interruption of our service.

xmnlab commented 2 years ago

We need to validate this well in the staging server, so that we don't risk interruption of our service.

sure thing! :)

@fccoelho I will move this forward this week.

xmnlab commented 2 years ago

I will add a few more things tomorrow, and I will start to play that on the staging server

fccoelho commented 2 years ago

@xmnlab is this PR still alive?

xmnlab commented 2 years ago

I need to rebase and finish that. Also, we will need something for the backup