Gateway Timeout when running CMK in Docker container

What says your Apache log inside the container at the time of the error messages?
Try to expose the container ports directly to minimize the impact of other software components. In my dev environment the containers are working without problem.