Ghost 6 and ActivityPub behind Traefik on Docker

How to set up ActivityPub when running Ghost 6 behind the Traefik reverse proxy on Docker.