dimitri / pgcopydb

Copy a Postgres database to a target Postgres server (pg_dump | pg_restore on steroids)
Other
1.16k stars 76 forks source link

Fix docker compose external volume #860

Closed dimitri closed 3 weeks ago

dimitri commented 2 months ago

In unit tests where we use both an inject and a test services, we need the inject service to access the same pgcopydb work directory as the test service. For that we use an external docker volume.

The previous implementation of that idea was found to be wrong, this is fixing it by properly using docker APIs for shared "external" volumes.