Skip to content

Publishing Postgres ports #268

Answered by yajo
yelizariev asked this question in Q&A
Discussion options

You must be logged in to vote

It's a little bit tricky. Yes, we have used that in the past and as it's tightly tied to our deployment system, which handles secrets, it's not straightforward to do.

However, all you need to do is make sure you supply that JSON/volumes info to that postgres image. It will automatically enable SSL security and auth. Then just expose the ports in the db service in your docker-compose.yaml.

After that, you can connect remotely to that postgres using the same user and password odoo uses. Or you can even create an entrypoint.d script that ensures persistence of a readonly user, if you need it for BI. The sky is the limit!

If you need that for local development, however, encryption is not need…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by joao-p-marques
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #268 on December 10, 2020 12:12.