1
2
3
Step 1: Setting up Docker and Docker-Compose
Step 2 Creating our docker-compose.yml file
Docker-Compose reads environment variables from a file called docker-compose.yml. We suggest making a folder called Kanboard or something similar so you know where it is.
Here is a sample file you can copy and paste. It has been commented to help explain what each line does.
version: '2'
services:
kanboard:
image: kanboard/kanboard:latest # Image to pull from Docker
ports: # inside:outside meaning this will listen for connections coming
# from ports 80 and 443 and do not need to be unique
# inside ports need to be unique
- "8080:80"
- "443:443"
volumes:
- kanboard_data:/var/www/app/data # Where we store the Kanboard data
- kanboard_plugins:/var/www/app/plugins # Where our plugins are
- kanboard_ssl:/etc/nginx/ssl # Where our ssl certs are
volumes:
kanboard_data:
driver: local # Meaning the volumes are on this host, not on a nas
kanboard_plugins:
driver: local
kanboard_ssl:
driver: local
After saving the file you are ready to start the container! Just run the following command in that directory.
sudo docker-compose up
Now open a web browser and go to localhost:8080 and you should be able to see the Kanboard login menu!
Note that if you close that terminal you will stop the Kanboard container. To have it run as a daemon add the -d flag to the above command.