How to configure static IP for discourse container

Since docker 1.10 it’s possible to set a static IP address for docker containers. This is useful when you have a nginx instance managing a lot of sites.

I guess one should edit the .yml file, but I’m not sure how

You should use links, rather than hard-coded IPs, to refer to other containers.

4 Likes

But I need to refer to a container from the actual host, not from another container, how could links help?

We have --docker-args args for that these days you can append whatever docker arguments you want to ./launcher

2 Likes