Jump to content

Updated Docker images and sample composition for local development


poljpocket
 Share

Recommended Posts

Hi everyone ?

I have just updated and streamlined my own local development experience. Most importantly, I used to have a custom Dockerfile which resulted in a custom image for every project I ran locally. This has now changed!

There is now a GitHub template repository tailored to local development: https://github.com/poljpocket/processwire-docker. This has everything you need to start developing locally on Docker.

Some of the features:

  • The composition is set up so that the site folder is fully accessible on the host.
  • You can use any site profile upon first installation. The actual install of ProcessWire is still manual though. I found that there is little benefit in automating this.
  • You can export the database to commit it into your repo and can also import it after pulling changes from upstream.

The comp uses my new image for ProcessWire which I just published to Docker Hub: https://hub.docker.com/r/poljpocket/processwire. It uses PHP8.2 via Apache and includes all the PHP extensions needed for ProcessWire. You can find the GitHub repo for it here: https://github.com/poljpocket/processwire-docker-image. There are images for the three most recent stable versions of ProcessWire (210, 227 and 229).

Important: I didn't care about security and hardening of the image. It is really only meant for local development.

Have fun with it! Any requests and reports are welcome ?, thank you.

Edited by poljpocket
  • Like 3
  • Thanks 1
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...