So confused... ssl?

ive been trying to get this to work for so long, but i am trying to setup ssl for that beautiful https lock and i have failed... at this point im just going to do this again from scratch.

i have my domain on cloudflare dns

what docker-compose file do i need that would require minimal configuration per container and how to i add portainer to it as well as cockpit and openmediavault gui to it?
how do i expose the dashboard securely?
then how do i make it work with pterodactyl panel?