Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
/ craftcms-docker Public archive

Starter project for Docker powered Craft CMS websites

License

Notifications You must be signed in to change notification settings

venveo/craftcms-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Build for Craft CMS

Our starter project for Docker powered Craft CMS websites

Installation

  1. Clone the respository into the a new project (e.g our-company-website)
  2. cd to our-company-website and run make craft. This will use composer to create new new Craft CMS project into the craft directory. This will also move the default craft\web directory to craft\html to ensure compatability with the official PHP Apache image
  3. Open Makefile and change COMPANY, PROJECT, DB_USER and DB_PASSWORD to meet your requirements
  4. Run make build. This will create a new Docker image using the Company and Project name (e.g venveo/new-project)
  5. After the build completes, run the command make run. This will create three new containers. One for PHP Apache, Postgres and MySQL
  6. Open up a browser and visit http:https://localhost/index.php/admin/install

Makefile

make craft

Uses composer to create a new Craft CMS inside the craft directory.

make build

Run the docker build command to create a new image for the Company/Project namespace.

make run

Run the Docker containers for the web and databases.

make ssh

Run docker exec to "ssh" into the webserver and drop you into a bash shell

make stop

Run docker stop on each container.

To Dos

  1. Setup Lets Encrypt for local HTTPS websites
  2. Cleanup the Makefile to be able to select MySQL or Postgres as the database
  3. Update and improve the documentation

Credits

About Venveo

Venveo is a Digital Marketing Agency for Building Materials Companies in Blacksburg, VA. Learn more about us on our website.

License

The MIT License (MIT). Please see License File for more information.

About

Starter project for Docker powered Craft CMS websites

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages