Here are the instructions: https://docs.docker.com/install/linux/linux-postinstall
I don't know if there could be any security implications, but it would be great to run docker-compose without sudo, for a more polished and smooth workflow.
This is essentially the same mechanism to run Wireshark without sudo.