TransWikia.com

Running Craft with Docker (or something similar)

Craft CMS Asked by Bill Columbia on January 26, 2021

Has anyone had success with setting up Craft using Docker?

I’ve stumbled across some Dockerfiles for WordPress and other CMS’s but couldn’t find much in the way of Craft. I’ll be exploring this a bit myself over the next week, but was hoping some people in the community may have a few good pointers or tips or even cautions.

To elaborate, I’m looking for alternatives to MAMP as well, or other development environment tools for working with Craft.

6 Answers

Looks like the craft team has a docker setup on their GitHub now. Lots to dig through with many options (PHP-FPM, nginx, mysql, etc).

Correct answer by Bill Columbia on January 26, 2021

You might want to check out this tutorial on using vagrant with craft. You could use this as an alternative to MAMP. http://straightupcraft.com/articles/setting-up-craft-with-vagrant

Answered by Matt on January 26, 2021

I've been using Laravel Homestead for local dev (and Forge controlled VPS' for staging). Both have been hugely successful for me – I've not touched MAMP for months.

Craft works off-the-shelf with both.

Answered by Steve Abraham on January 26, 2021

I am creating an image to help me test Craft.

https://github.com/gabrielmoreira/docker-craft

Answered by user1141793 on January 26, 2021

For anyone who is interested - I did a quick mashup of the Craft and Laravel Homestead documentation to outline the process I went through for setting up my first Craft site locally on a Vagrant/Homestead box.

Thanks to the guys over at Straight Up Craft for the video about Vagrant and Craft which introduced me to Homestead

https://medium.com/@mattcollins_6/setting-up-a-local-dev-environment-for-craft-cms-using-laravel-homestead-2724be3954a5

Answered by Matt on January 26, 2021

Yes I have. I even wrote an article that describes the application I created to automate the install process less than two minutes.

CraftCMS + Docker Dev Environment in seconds

Answered by bshelling on January 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP