Docker + docker-compose to get your Kirby 3.x up and running using docker in your local machine.
- MacOS version
10.13.6
- Docker version
20.10.2
- docker-compose version
1.27.4
Create a folder for your local project. E.g.: myproject
.
$ mkdir myproject
Enter inside your project folder myproject
and clone this repo.
$ cd myproject
$ git clone https://github.com/nalmeida/kirby-3.x-local-docker-server.git .
Remove the .git
folder from this project.
$ rm -rf .git
Clone your Kirby project or some of the starter projects inside the ./public
folder:
./public
$ git clone https://github.com/getkirby/plainkit.git public
Download, build the Dockerfile image and start yout project.
$ docker-compose up
Open your site in the browser and start working.
- Open http://localhost:8098
- Change your files inside the
./public
folder.
Inside your myproject
folder:
$ docker-compose up
$ docker ps
Inside your myproject
folder:
$ docker-compose down
Or Ctrl+c
inside yout Terminal.