Dockerfile for a container running Kirby CMS, Alpine, Apache and PHP7
For the Kirby 2 legacy version check out docker-getkirby-v2
Create a docker-compose.yml
in your Kirby directory:
version: '3'
services:
docker:
image: paolomolo/getkirby-apache:v3
volumes:
- ./content:/var/www/localhost/htdocs/content
- ./site:/var/www/localhost/htdocs/site
- ./assets:/var/www/localhost/htdocs/assets
- ./media:/var/www/localhost/htdocs/media
ports:
- "80:80"
Then run docker-compose up
from your command line and visit localhost
in your browser.