Hi, not sure I can post this question question here. If not delete. Is there a way to assign a static ip for each containers (applications) in BBCasaOS?
Thanks!
Hi, not sure I can post this question question here. If not delete. Is there a way to assign a static ip for each containers (applications) in BBCasaOS?
Thanks!
Yes, you can post any tech questions in the forum. Trying to build a helpful and supportive tech community!
You can assign a static IP, but you would need to edit the Docker Compose files, which would be overwritten once the app in BigBearCasaOS gets updated. What’s the reason you need a static IP for each app? You can just add a static IP to the CasaOS and then use ports for each app. Then you can set up a proxy if you want.
Hi Thanks for the reply!
Because I want to uses DNS. I found how. Thanks!
I think I figured it out
– Set the MY_IP docker variable to the IP you want assigned out of the range that docker is using and it will always load the image with that IP (it seems as long as you do it on all containers…not sure if you’d get a conflict in assignment if a container without MY_IP assigned loaded prior to one with it assigned and they ended up attempting to have the same IP).
How were you able to do it? I’ve having an issue with MariaDB having a different IP address assigned on reboot and having to edit the nextcloud /config/www/nextcloud/config/config.php file every time I reboot to set the database address to the new IP that was assigned.