postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail

Home Page:https://postalserver.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Network

VermiumSifell opened this issue · comments

I think docker networks should be used instead of "127.0.0.1". This makes it easier to use Traefik for example.

Basicly get rid of network_mode: "host", and open ports using Docker

This is incompatible with IP pools. If you want to do this, you're welcome to configure your installation like that if you don't use IP pools but I don't plan on changing the default installation for this I'm afraid.

Okay cool, how can I change to use docker networks? :D

You said it yourself

Basicly get rid of network_mode: "host", and open ports using Docker

You would have to take responsibility for managing the docker-compose.yml file yourself, I'm not sure if subsequent updates would revert your changes.

You might be able to use a docker-compose.override.yaml to change them and avoid issues some potential issues on upgrades. I haven't tried though so you'd need to experiment.