Skip to content

[docker-compose] Harmonize and factorize PGSQL configuration

Previously, PostgreSQL configuration for the different swh services was not really consistent (sometimes through an env file, sometimes overriding environment directly in docker-compose.yml).

Moreover, some bash code for pgsql service setup was duplicated in numerous entry points.

That diff aims to harmonize and factorize the pgsql setup through:

  • adding dedicated env files for pgsql database configuration

  • factorizing pgsql service setup in a bash function

The way to wait for a pgsql database to be up has also been improved and all swh services should now be in a running state after a call to docker-compose up.


Migrated from D1308 (view on Phabricator)

Merge request reports