[docker-compose] connect to postgres from host


We are using the docker-compose installation, everything works like a charm. We were wondering if we can access the postgresdb by any means (for reporting etc.) from the host machine or an external machine.

Has somebody managed to do this?

Technically you could, however, if you’re after reporting, you should rather talk to your elasticsearch container. :wink:

I’ve done this - I simply specified a volume on my host machine’s FS and added access for my LAN via the pgsql config files. You’ll also have to expose the pgsql port in the docker-compose file, so make sure you have a good firewall and restrict the pgsql access to the zammad user and your specific IP range.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.