This commit is contained in:
DoTheEvo 2023-04-01 00:12:41 +02:00
parent 25a2cb8f74
commit 14dc97be9f
1 changed files with 16 additions and 15 deletions

View File

@ -6,13 +6,13 @@
# 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)
* [Github](https://github.com/portainer/portainer)
* [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.
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/
└── portainer/
├── portainer-data/
├── portainer_data/
├── .env
└── 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
* `docker-compose.yml` - a docker compose file, telling docker
how to run the containers
@ -41,8 +41,6 @@ The directory is created by docker compose on the first run.
`docker-compose.yml`
```yml
version: '2'
services:
portainer:
image: portainer/portainer-ce
@ -53,18 +51,19 @@ services:
env_file: .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer-data:/data
- ./portainer_data:/data
expose:
- "9443"
networks:
default:
external:
name: $DOCKER_MY_NETWORK
name: $DOCKER_MY_NETWORK
external: true
```
`.env`
```bash
# GENERAL
MY_DOMAIN=example.com
DOCKER_MY_NETWORK=caddy_net
TZ=Europe/Bratislava
```
@ -76,16 +75,18 @@ Caddy v2 is used, details
`Caddyfile`
```
portainer.{$MY_DOMAIN} {
reverse_proxy portainer:9000
port.example.com {
reverse_proxy portainer:9443 {
transport http {
tls
tls_insecure_skip_verify
}
}
}
```
# Update
[Watchtower](https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/watchtower)
updates the image automatically.
Manual image update:
- `docker-compose pull`</br>