From d0e6d2e1f177cfe533ea7819bf79b0469b8d0cc2 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 13 Oct 2014 19:24:09 -0400 Subject: Add Docker config file and documentation --- docs/docker.markdown | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docs/docker.markdown (limited to 'docs') diff --git a/docs/docker.markdown b/docs/docker.markdown new file mode 100644 index 00000000..92fcf2c3 --- /dev/null +++ b/docs/docker.markdown @@ -0,0 +1,48 @@ +How to test Kanboard with Docker? +================================= + +Kanboard can run with [Docker](https://www.docker.com). +You can use the public image or build your own image from the `Dockerfile`. + +Actually, the Docker image is based on the master branch (development version). + +Build your own Docker image +--------------------------- + +From your kanboard directory run the following command: + +```bash +docker build -t youruser\kanboard:master . +``` + +To run your image in background on the port 80: + +```bash +docker run -d --name kanboard -p 80:80 -t youruser/kanboard:master +``` + +Run the public Kanboard image +----------------------------- + +This image is stored on the [Docker Hub](https://hub.docker.com). + +Fetch the image on your machine: + +```bash +docker pull kanboard/kanboard:master +``` + +Run the image: + +```bash +docker run -d --name kanboard -p 80:80 -t kanboard/kanboard:master +``` + +Store your data on a volume +--------------------------- + +You can also save your data outside of the container, on the local machine: + +```bash +docker run -d --name kanboard -v /your/local/data/folder:/var/www/html/data -p 80:80 -t kanboard/kanboard:master +``` -- cgit v1.2.3