Can’t access Docker containers from website run with Apache

Okay guys, I have no idea what to do. I have a Raspberry Pi running everything. I use Apache to host my website,, (not in a container), and I have a few containers with things such as Nextcloud, Bitwarden, Plex, etc. I want to access these containers from subdomains, like,, etc.

I previously installed Plex without a container, and used a port proxy in my virtualhost file and everything worked as expected. When I went to move the services to Docker, I figured I could pass the ports through and do the same thing. The idea is that I would go to, and it would go to port 885/4445 and access the Docker container. It didn't work. When I try to access it, the webpage just says it's "temporarily unable to service your request". I did use the containers IP instead of the hosts, but to no avail.

I think I explained everything, but if I need to give more information, please let me know. Thank you!

My vhost file: (Pihole is commented out because I don't have it set up right now, but it is on the list of things I want to set up. All other services in this file I have downloaded and ran images for.)

submitted by /u/Piixelated
[link] [comments]
Source: Reddit