Mailcow-dockerized: Static IP

Created on 16 Jan 2019  路  2Comments  路  Source: mailcow/mailcow-dockerized

Is it possible to give the containers static IPs? Its just one line of code and at least for the MySQL container it would be greate becaus 3rd apps like AfterLogic needs the MySQL connection. At the moment after every update you have to look wich new IP the container has and update the configuration files...

Most helpful comment

You can simply use the container name mysql. If you are using a external network you could use mysql-mailcow.

Docker will then give you the correct container ip back via DNS.

All 2 comments

You can simply use the container name mysql. If you are using a external network you could use mysql-mailcow.

Docker will then give you the correct container ip back via DNS.

Worked. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

constin picture constin  路  3Comments

RogerSik picture RogerSik  路  3Comments

poldixd picture poldixd  路  3Comments

pgollor picture pgollor  路  3Comments

K2rool picture K2rool  路  3Comments