Docker / OctoberCMS
Docker for OctoberCMS (Based on Bitnami images)
This repository is created to use OctoberCMS on docker, and also to use it as submodule for themes or plugins development.
How to setup
$ cp .env.example .env
$ cp docker-compose.yml.example docker-compose.yml
$ docker-compose up -d
$ docker-compose exec app php artisan october:install
How to use for theme development
Add submodule to the your repository
$ git submodule add --depth 1 https://github.com/WebCreamGroup/octobercms-docker.git
$ cd ./octobercms-docker
$ cp .env.example .env
$ cp docker-compose.yml.example docker-compose.yml
Some changes in docker-compose.yml
### App service
app:
...
volumes:
...
- ../:/app/themes/mytheme
### Apache service
apache:
...
volumes:
...
- ../:/app/themes/mytheme
That's it! The same thing with plugins.
P.S. You can manage many themes and plugins
What images are included
bitnami/php-fpm:7.4-debian-10
bitnami/apache:2.4-debian-10
djfarrelly/maildev
How to access
- OctoberCMS:
http://localhost
or for sslhttps://localhost
- Maildev:
http://localhost:1080
How to access docker by shell
- As host user:
docker-compose exec app bash
- As root user:
docker-compose exec -u root app bash