|
|
@ -6,13 +6,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Purpose
|
|
|
|
# Purpose
|
|
|
|
|
|
|
|
|
|
|
|
Web UI for overview and management of docker environment.
|
|
|
|
Web GUI for overview and management of docker environment.
|
|
|
|
|
|
|
|
|
|
|
|
* [Official site](https://www.portainer.io)
|
|
|
|
* [Official site](https://www.portainer.io)
|
|
|
|
* [Github](https://github.com/portainer/portainer)
|
|
|
|
* [Github](https://github.com/portainer/portainer)
|
|
|
|
* [DockerHub image used](https://hub.docker.com/r/portainer/portainer-ce/)
|
|
|
|
* [DockerHub image used](https://hub.docker.com/r/portainer/portainer-ce/)
|
|
|
|
|
|
|
|
|
|
|
|
Portainer is a lightweight management web UI, that allows to easily manage
|
|
|
|
Lightweight management web UI, that allows to easily manage
|
|
|
|
docker containers, networks, volumes, images,... the work.
|
|
|
|
docker containers, networks, volumes, images,... the work.
|
|
|
|
|
|
|
|
|
|
|
|
In my use it is mostly information tool, rather than a management tool.
|
|
|
|
In my use it is mostly information tool, rather than a management tool.
|
|
|
@ -24,12 +24,12 @@ In my use it is mostly information tool, rather than a management tool.
|
|
|
|
└── ~/
|
|
|
|
└── ~/
|
|
|
|
└── docker/
|
|
|
|
└── docker/
|
|
|
|
└── portainer/
|
|
|
|
└── portainer/
|
|
|
|
├── portainer-data/
|
|
|
|
├── portainer_data/
|
|
|
|
├── .env
|
|
|
|
├── .env
|
|
|
|
└── docker-compose.yml
|
|
|
|
└── docker-compose.yml
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
* `portainer-data/` - a directory where portainer stores its peristent data
|
|
|
|
* `portainer_data/` - a directory where portainer stores its peristent data
|
|
|
|
* `.env` - a file containing environment variables for docker compose
|
|
|
|
* `.env` - a file containing environment variables for docker compose
|
|
|
|
* `docker-compose.yml` - a docker compose file, telling docker
|
|
|
|
* `docker-compose.yml` - a docker compose file, telling docker
|
|
|
|
how to run the containers
|
|
|
|
how to run the containers
|
|
|
@ -41,8 +41,6 @@ The directory is created by docker compose on the first run.
|
|
|
|
|
|
|
|
|
|
|
|
`docker-compose.yml`
|
|
|
|
`docker-compose.yml`
|
|
|
|
```yml
|
|
|
|
```yml
|
|
|
|
version: '2'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
portainer:
|
|
|
|
portainer:
|
|
|
|
image: portainer/portainer-ce
|
|
|
|
image: portainer/portainer-ce
|
|
|
@ -53,18 +51,19 @@ services:
|
|
|
|
env_file: .env
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- ./portainer-data:/data
|
|
|
|
- ./portainer_data:/data
|
|
|
|
|
|
|
|
expose:
|
|
|
|
|
|
|
|
- "9443"
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: $DOCKER_MY_NETWORK
|
|
|
|
name: $DOCKER_MY_NETWORK
|
|
|
|
external: true
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
`.env`
|
|
|
|
`.env`
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
# GENERAL
|
|
|
|
# GENERAL
|
|
|
|
MY_DOMAIN=example.com
|
|
|
|
|
|
|
|
DOCKER_MY_NETWORK=caddy_net
|
|
|
|
DOCKER_MY_NETWORK=caddy_net
|
|
|
|
TZ=Europe/Bratislava
|
|
|
|
TZ=Europe/Bratislava
|
|
|
|
```
|
|
|
|
```
|
|
|
@ -76,16 +75,18 @@ Caddy v2 is used, details
|
|
|
|
|
|
|
|
|
|
|
|
`Caddyfile`
|
|
|
|
`Caddyfile`
|
|
|
|
```
|
|
|
|
```
|
|
|
|
portainer.{$MY_DOMAIN} {
|
|
|
|
port.example.com {
|
|
|
|
reverse_proxy portainer:9000
|
|
|
|
reverse_proxy portainer:9443 {
|
|
|
|
|
|
|
|
transport http {
|
|
|
|
|
|
|
|
tls
|
|
|
|
|
|
|
|
tls_insecure_skip_verify
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# Update
|
|
|
|
# Update
|
|
|
|
|
|
|
|
|
|
|
|
[Watchtower](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/watchtower)
|
|
|
|
|
|
|
|
updates the image automatically.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Manual image update:
|
|
|
|
Manual image update:
|
|
|
|
|
|
|
|
|
|
|
|
- `docker-compose pull`</br>
|
|
|
|
- `docker-compose pull`</br>
|
|
|
|