From b711ca0917af0709edbc85dc3da6504cc995aa4b Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Sun, 10 May 2020 15:32:38 +0200 Subject: [PATCH] update --- portainer/readme.md | 47 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/portainer/readme.md b/portainer/readme.md index ce1f0e7..17470e6 100644 --- a/portainer/readme.md +++ b/portainer/readme.md @@ -6,8 +6,16 @@ # Purpose -User friendly overview and managment of the running containers, -networks, volumes, images,... the work. +Web based GUI for overview and management of docker environment. + +* [Official site](https://www.portainer.io) +* [Github](https://github.com/portainer/portainer) +* [DockerHub image used](https://hub.docker.com/r/portainer/portainer/) + +Portainer is a lightweight management web UI, that allows to easily manage +docker container, networks, volumes, images,... the work. + +In my use it is mostly information tool, rather than a management tool. # Files and directory structure @@ -16,11 +24,19 @@ networks, volumes, images,... the work. └── ~/ └── docker/ └── portainer/ - ├── portainer_data/ + ├── portainer-data/ ├── .env └── docker-compose.yml ``` +* `portainer-data/` - a directory where portainer stores its peristent data +* `.env` - a file containing environmental variables for docker compose +* `docker-compose.yml` - a docker compose file, telling docker + how to build the containers + +You only need to provide the files.
+The directory is created by docker compose on the first run. + # docker-compose `docker-compose.yml` @@ -37,7 +53,7 @@ services: env_file: .env volumes: - /var/run/docker.sock:/var/run/docker.sock - - ./portainer_data:/data + - ./portainer-data:/data networks: default: @@ -67,9 +83,22 @@ portainer.{$MY_DOMAIN} { # Update - * [watchtower](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/watchtower) updates the image automaticly +[Watchtower](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/watchtower) +updates the image automatically. - * manual image update
- `docker-compose pull`
- `docker-compose up -d`
- `docker image prune` +Manual image update: + +- `docker-compose pull`
+- `docker-compose up -d`
+- `docker image prune` + +# Backup and restore + +#### Backup + +Using [borg](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/borg_backup) +that makes daily snapshot of the entire directory. + +#### Restore + +Other than having backup of the `docker-compose.yml` there is not much to