Multi-theme development via docker compose

What’s the state of local theme dev with docker and ghost? I haven’t found a good docker compose up sort of experience for working with ghost locally in terms of running ghost in dev mode and also watching/compiling ghost theme(s). I’d like to be able to work on one or more themes. I’m specifically working on a theme bundle. But I also want to be able to work on a clients custom theme or a specific install but leverage my docker tooling to make it a less awkward experience with the current ghost cli and symlinked theme setup.

I’ve got something running now that feels obvious, and would love to share it’s baked for a bit. But for the meantime, I’m curious if other folks have something as simple as docker compose up and docker compose down.

Additionally, I still need to verify my github ghost theme deploy action can still work with the specific working-directory I need to deploy, but it is part of the config so I assume it’ll work.

The theme deploy action just talks to Ghost’s Admin API. Assuming you haven’t totally borked permissions on your /content folder (in which case you’re gonna have a lot of problems), theme deploy should work fine.

1 Like

Figured that would be good to go.

Here is the wip I have so far: GitHub - eddywashere/ghost-docker-dev: Multi-theme development for Ghost via docker compose · GitHub

docker compose up - From there you’ll setup first time ghost install, then select one of the local themes thats available. Add your own theme assuming it has the correct npm scripts. Example themes included are the Source theme and some very dummy themes.

Will push back updates to this as time goes on. But would love to see what other folks do with docker.