Ghost 2.0 Docker: links point at localhost:2368

Upgraded to Ghost 2.0 on Docker Alpine on Friday. The links point at http://localhost:2368. Sure they did not when i was running ghost:1-alpine in Docker. How can I correct this so the links point at my domain name? Tried passing in environment variables when starting up container but no joy.



I will admit I just started paying with Ghost this evening as a way to play around with Docker some more; so I may not be doing everything the most ideal way but… I found the Ghost Docker a bit under documented and that kind of pushed more to explore whats going on a bit more.

Oh you could forget about traefik bits.

the docker-compose file:

   image: ghost:2-alpine
   container_name: ghost
   restart: always
     - /srv/docker/ghost/data:/var/lib/ghost/content
     - url=https://ghost.${DOMAINNAME}
     - traefik_proxy
     - "traefik.enable=true"
     - "traefik.backend=ghost"
     - "traefik.frontend.rule=Host:ghost.${DOMAINNAME}"  
     - "traefik.port=2368"
     - ""


Also to note, I have an .env file which has my DOMAINNAME defined.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.