Our starter project for Docker powered Craft CMS websites
- Clone the respository into the a new project (e.g
our-company-website
) cd
toour-company-website
and runmake craft
. This will use composer to create new new Craft CMS project into thecraft
directory. This will also move the defaultcraft\web
directory tocraft\html
to ensure compatability with the official PHP Apache image- Open
Makefile
and changeCOMPANY
,PROJECT
,DB_USER
andDB_PASSWORD
to meet your requirements - Run
make build
. This will create a new Docker image using the Company and Project name (e.g venveo/new-project) - After the build completes, run the command
make run
. This will create three new containers. One for PHP Apache, Postgres and MySQL - Open up a browser and visit http:https://localhost/index.php/admin/install
Uses composer to create a new Craft CMS inside the craft
directory.
Run the docker build
command to create a new image for the Company/Project namespace.
Run the Docker containers for the web and databases.
Run docker exec
to "ssh" into the webserver and drop you into a bash shell
Run docker stop
on each container.
- Setup Lets Encrypt for local HTTPS websites
- Cleanup the
Makefile
to be able to select MySQL or Postgres as the database - Update and improve the documentation
Venveo is a Digital Marketing Agency for Building Materials Companies in Blacksburg, VA. Learn more about us on our website.
The MIT License (MIT). Please see License File for more information.