Multiple containers in separate network - need fixed IP-addresses

I’m running an application based on a SQL database in a separate container on a dedicated network. Application is linked via the portainer ENV vars to the SQL server IP address that was assigned by dhcp at that time. After a reboot different ip-addresses were assigned to the containers.

Question: Can I set fixed IP addresses to each container in the network VIA Portainer :wink:

When you are creating a container (or editing an existing container), scroll down to the bottom to Advanced container settings and select the Network tab. In here you can define the IP address of the container.

In most cases though I would generally recommend using the container name rather than the internal IP address for just this reason.