TGViewer
r/SelfHosted r/SelfHosted @r_selfhosted · 973 subscribers
Post #54049 24
Which image for shared web hosting w/ Traefik?

Hi,

Planning on hosting some PHP based web sites in a container environment. Going to use Traefik for the proxy. Trying to figure out which PHP image makes most sense. Looking for a reasonably light and secure setup.

- php:8.5-apache - This one I reckon should be safe and "just work", but I don't know that including Apache in each container is the best approach.
- php:8.5-fpm - Should be lightweight due to not including a web server, but has notes regarding being insecure to expose. It should only be exposed to the proxy server, though, so should be fine?
- Custom image with PHP and some other web server?

Each site/stack will run as a separate user, in a separate network. Have not yet decided on Docker vs Podman. I will probably be making a custom image, possibly based on one of the above, either way.

https://redd.it/1x3vm24
@r_SelfHosted
Reddit From the selfhosted community on Reddit Explore this post and more from the selfhosted community
More from @r_selfhosted
  1. Oct 12, 2026What is your dream use-case? I grew up with computers but admittedly never really could un…
  2. Oct 12, 2026photo post
  3. Oct 12, 2026My custom Olympus dashboard https://redd.it/1x40yc2 @r_SelfHosted
  4. Oct 12, 2026Any ideas where to get cheap/reliable HDDs (germany/europe)? I knew hardware wouldnt be ch…
  5. Oct 12, 2026Best photo gallery work with smb? Seems we don't have much options nowadays for photo gall…
  6. Oct 12, 2026CyberSecurity Paranoia Hi folks, I wanted to do a quick sanity check on my current infrast…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →