Webapplikation zur Erstellung eines Messdienerplans
First we need to setup the Pi with an operating system. Because we run our server inside a Docker Container, I recomend to use an OS that already inclue Docker. I use Hypriot. You can find the instruction how to Install Hypriot here:
To connect first time to the pi use ssh
ssh pirate@LOCAL-IP-OF-PI
The default PW for the user pirate
is hypriot
An easy way to manage all Docker container is portainer.io
Portainer is a lightweight management UI which allows you to easily manage your Docker host or Swarm cluster.
First we create a new folder for our Planer Service with:
mkdir planer && cd planer
Then we download the Dockerfile and the docker-compose.yml from this github repo with:
curl --get https://raw.githubusercontent.com/Maekes/planer/master/Dockerfile > Dockerfile
curl --get https://raw.githubusercontent.com/Maekes/planer/master/docker-compose.yml > docker-compose.yml
After getting all file we can start our application with
docker-compose up -d
If you want to update planer after changes have made simply stop the service, rebuild it and start it again:
docker stop planer & docker rmi planer_planer -f & docker build planer & docker start planer
If something not working after update
docker rmi planer_planer -f