Comment on If you already know Docker CLI, is there a reason to use Portainer?
aStonedSanta@lemm.ee 1 month agoAnd then there is me. I had to start my stack 7 times yesterday in portainer. I should really figure out how to set it up right. I had thought setting gluetun to a static IP would get it to launch first. Or adding it to the top of the config. But alas. No go.
gamermanh@lemmy.dbzer0.com 1 month ago
What works for me:
Networks first in docker-compose
Gluetun first in Services, uses the network I set for it and the stack
Everything else goes below it, relying on the gluetun CONTAINER (I plan to have another stack running gluetun for other reasons so having it check the service is a no go for me) to be running in a HEALTHY state
All are set to restart: unless-stopped except gluetun, which is never
The expected behaviour is that containers will always wait for gluetun to report that it’s healthy before trying again to restart. Should gluetun fail and crash for any reason it won’t reboot and potentially fuck itself up harder, and no services will be able to start because it’s not reporting healthy.
This works perfectly in portainer and should when running docker-compose up, but for me it took portainer to work. Saw someone somewhere mention it has some sort of priority handling override built into it that docker itself doesn’t, meaning it’s less likely to fuck that lind of thing up, but idk how true it is
I’ll see if I can remember to snag a couple snips of my YAML to make it more clear
aStonedSanta@lemm.ee 1 month ago
Awesome. Thank you so much. Saving this for when I get back into town. Gonna fuck around and find out Monday 💜🙏
gamermanh@lemmy.dbzer0.com 1 month ago
Ok, had my wife send me the file from my network
I left in the wireguard stuff without my details because for me Gluetun refused to work when setting the exact same info to wg0.conf, so I define it in my compose
Then, services that rely on gluetun go below and look like:
Works perfectly when I run it through portainer
one_knight_scripting@lemmy.world 1 month ago
Wow. What an awesome wife. I think I just discovered a new relationship goal.
aStonedSanta@lemm.ee 1 month ago
Thank you so much. 😊 I see a few things already worth changing in my file. You da best.