this post was submitted on 02 May 2024
8 points (100.0% liked)
Docker
1104 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Try using the postgres hostname instead of "ipaddress", it should work. Postgres doesn't have to be exposed on host for this to work, and all compose files will automatically create a bridge network for all services defined in it so you don't technically need to make an explicit network (unless you really need to define IPs or MACs or some other parameters).
I'll give it a go. Thank you.