Http port 80 and https port 443

ok - some background - I run each docker container on a macvlan network with dedicated IP address. So no port conflicts.

I would like to start sonarr on ports 80 443 as ROOT then switch to user abc.

when I use “s6-envuidgid -B abc /app/sonarr/bin/Sonarr -nobrowser -data=/config”
sonarr runs on ports 80 443 but as ROOT.

when I use “s6-applyuidgid -u 525 -g 525 /app/sonarr/bin/Sonarr -nobrowser -data=/config”
sonarr runs as abc but can’t access ports.

Do I need to change something in the s6-fdholderd.

any good tutorials for s6? the more I learn the more confused I get.

Thanks
Michael

Non root users can not open privileged ports.
Either setup a port forwarding using socat as root user before running your app as non root user or change the privileged port list in the kernel settings.