Didn't know if I could assign ICMP rights only to groups or also to users as the corresponding sysctl is called ping_group_range. I set it via the sysctl: section of the docker-compose.yaml.
ping_group_range
sysctl:
docker-compose.yaml