An October CMS plugin for Docker support.
The Docker image aspendigital/octobercms contains October CMS pre-installed along with all it's dependencies. This plugin is also introduced via the image's Dockerfile to establish a default database (sqlite) for the image.
Establishing a default database for the image allows backend access without any additional setup, expediting testing of plugins, themes, etc.
Also, a database is also currently required for the system build parameters to be set.
To run October CMS using Docker, start a container using our image mapping your local port 80 to the container's port 80:
$ docker run -p80:80 aspendigital/octobercms:latest
Run the container in detached mode using the container name october
and launch an interactive shell (bash) for the container.
$ docker run -p80:80 -d --name october aspendigital/octobercms:latest
$ docker exec -it october bash
- Dockerized October CMS: PHP, Composer, October core and dependencies
- Get started with Docker
- Command line references for
docker run
anddocker exec
A summary of the console commands introduced by this plugin.
The docker:up
console command is used to establish a default database (sqlite) for our base Docker image aspendigital/octobercms. It is run as a part of our Docker image build process.
Running docker:up
also disables October CMS core and edge updates by default. This can be overridden using the --edge
option.
Options
--edge
: Enable edge updates
The docker:edge
console command updates the container's October CMS configuration to enable core and edge updates.
Options
--update
: Enable edge updates and automatically run october:update
--disable
: Disable edge updates
The docker:info
console command displays the container's current October CMS build, hash, etc.