Image on post not loading in public

Hello!
I’ve been discovering Ghost for a few days now.

I have a self-hosted version via Dokploy in version 6 using docker-compose.

My problem is that the images in my posts and pages don’t appear in the gallery. When you click on them, they appear without any problems.

When inspecting the page code, I noticed that the img tag used src rather than srcset, as on feature images. I also noticed that the URL used a direct link in https rather than a relative link.

The websitelink

I can’t see any configuration that would allow me to fix this, either in the Ghost interface or in the Docker installation.

Steps to Reproduce

  1. Get Ghost 6.8.1 via Dockploy and Docker Compose

  2. Create a post with one or more images.

  3. View the post while not logged in.

Ghost Version

6.8.1

Node.js Version

22.21.1

How did you install Ghost?

Docker Compose with Dokploy

Database type

MySQL 8

Browser & OS version

Firefox 145.0.1 (aarch64) On MacOs 26

No Error Log

You have a mixed-content error - you’ve got content trying to load over http, but the browser won’t let it because the site is being served over https.

Check your docker compose for any mix of http/https in your settings. (The problem could also be in whatever is proxying in front of your Ghost site.)

1 Like

To add, if OP is using Dokploy standard templates and the standard Ghost 6 image in Dokploy, they are most likely utilizing Traefik for the proxy. If you could confirm or deny it @Victor it could help render the appropriate support :)

That was indeed the case! A single ‘s’ was missing from the docker-compose configuration file.

url: http://${DOMAIN}
url: httpS://${DOMAIN}

Thanks !

1 Like

Yes, Dokploy uses Traefik. To be honest, I’m not very familiar with that part…

1 Like

Curious, is there a reason why you chose Dokploy to deploy Ghost over their Docker Compose approach?
I wanted to ask this in addition because Dokploy in itself is also very heavy to use. During my tests with the platform, I have noticed CPU spikes consistently to 110% utilization on a 2gb CPU Server. If you’re trying to keep costs low and consistent performance, I recommend just ditching Dokploy.

The reason is simple: simplicity. I have a VPS server that I use for about ten services. Dokploy allows me to manage them relatively easily.
I haven’t encountered any performance issues so far.

1 Like