But after I restart the containers with docker-compose down && docker-compose up -d, allowed ports seems not to be working, until I run ufw-docker allow again. But I can't do this inside github actions workflow because ufw requires root access. Is there a way to allow ports permanently? Or somehow automatize recreating ufw rules after containers restart? Why this problem even happen? After all I specify container name, not container id, and the rules looks the same after recreating.
Thank you for this tool! Very useful and easy to use, but I there's one tiny problem. I have opened 80 and 443 ports for my container:
But after I restart the containers with
docker-compose down && docker-compose up -d
, allowed ports seems not to be working, until I runufw-docker allow
again. But I can't do this inside github actions workflow because ufw requires root access. Is there a way to allow ports permanently? Or somehow automatize recreating ufw rules after containers restart? Why this problem even happen? After all I specify container name, not container id, and the rules looks the same after recreating.Thank you for any assistance.