added portainer setup and gui options

This commit is contained in:
Bret Fisher
2018-09-29 16:54:42 +02:00
committed by Jérôme Petazzoni
parent 100c6b46cf
commit 35614714c8
3 changed files with 67 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@ chapters:
- swarm/apiscope.md
- - swarm/logging.md
- swarm/metrics.md
- swarm/gui.md
- swarm/stateful.md
- swarm/extratips.md
- shared/thankyou.md
+51
View File
@@ -0,0 +1,51 @@
# GUI's: Web Admin of Swarms and Registry
What about web interfaces to control and manage Swarm?
- [Docker Enterprise](https://www.docker.com/products/docker-enterprise) is Docker Inc's paid offering, which has GUI's.
- [Portainer](https://portainer.io) is a popular open source web GUI for Swarm with node agents.
- [Portus](http://port.us.org) is a SUSE-backed open source web GUI for registry.
- Find lots of other Swarm tools in the [Awesome Docker list](http://awesome-docker.netlify.com).
---
## Lets deploy Portainer
- Yet another stack file
.exercise[
- Make sure we are in the stacks directory:
```bash
cd ~/container.training/stacks
```
- Deploy the Portainer stack:
```bash
docker stack deploy -c portainer.yml portainer
```
]
---
## View and setup Portainer
- go to `<node ip>:9090`
- You should see the setup UI. Create a 8-digit password.
- Next, tell Portainer how to connect to docker.
- We'll use the agent method (one per node).
- For connection, choose `Agent`
- Name: `swarm1`
- Agent URL: `tasks.agent:9001`
- Let's browse around the interface
+15
View File
@@ -0,0 +1,15 @@
version: "3.4"
services:
web:
image: portainer/portainer
ports:
- "9000:9000"
agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
environment:
AGENT_CLUSTER_ADDR: tasks.agent