3liz / lizmap-docker-compose

Run Lizmap stack with docker-compose
30 stars 42 forks source link

Deactivate the postgres service if possible #32

Open dmarteau opened 2 years ago

dmarteau commented 2 years ago

The postgis/postgres service is enabled by default with no way to deactivate it: this is problematic when using a custom or a local database service.

Please find a way to deactivate the Postgres service and set a custom database configuration.

rldhont commented 2 years ago

@dmarteau is it possible in docker-compose to deactivate a service when it is needed by an other one ?

dmarteau commented 2 years ago

If postgis is now required for storing user database, then you may use a configuration where the postgres service run silently as backend i.e: 1) Do no publish public access to 5432 2) Don't use pgservice/pgpass, as they are also used by Qgis for SIG data.