Dockerfile for a container running Kirby CMS, Alpine, Apache and PHP7
Kirby 2 is deprecated. For the latest Dockerfile check out docker-getkirby-v3
Create a docker-compose.yml
in your Kirby directory:
version: '2'
services:
docker:
image: paolomolo/getkirby-apache:v2
volumes:
- ./content:/var/www/localhost/htdocs/content
- ./site:/var/www/localhost/htdocs/site
- ./assets:/var/www/localhost/htdocs/assets
ports:
- 80:80
Then run docker-compose up
from your command line and visit localhost
in your browser.
- Kirby CMS (v2) a file‑based CMS
- Alpine a security-oriented, lightweight Linux distribution
- PHP7 incl.
php-curl, php-dom, php-openssl, php-xml, php-json
- Apache2 web server