GPTI
Gerenciamento das aplicações
atualizado em 05/03/2018
Portainer
Interface web de gerenciamento para host Docker
Portainer
Dashboard
Portainer
Stacks
Portainer
Services
Portainer
Containers
Portainer
Swarm
Portainer
Deploy
docker run -d \
-p 9000:9000 \
-v "/var/run/docker.sock:/var/run/docker.sock" \
--restart always \
--name portainer portainer/portainer
Portainer
Documentação
Traefik
HTTP reverse proxy and load balancer
Funcionalidades
Traefik
- Rest API
- Hot-reloading
- Round Robin, rebalancer load-balancers
- High Availability with cluster mode
- Roda como container
Traefik is obviously slower than Nginx, but not so much: Traefik can serve 28392 requests/sec and Nginx 33591 requests/sec which gives a ratio of 85%. Not bad for young project :) !
Benchmark
Traefik
Traefik
Deploy
docker network create --driver=overlay traefik-net
docker service create \
--name traefik \
--constraint=node.role==manager \
--publish mode=host,target=80,published=80 \
--publish 8080:8080 \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--network traefik-net \
traefik \
--logLevel=DEBUG \
--docker \
--docker.swarmmode \
--docker.domain=pmv.local \
--docker.watch \
--web
Traefik
Documentação
GitLab CI/CD
Pipeline
deploy:
image: prefeituravitoria/docker:latest
script:
- docker login
-u $CI_REGISTRY_USER
-p $CI_REGISTRY_PASSWORD
$CI_REGISTRY
- docker build -t "${CI_REGISTRY_IMAGE}:${TAG_NAME}" .
- docker push "${CI_REGISTRY_IMAGE}:${TAG_NAME}"
- deploy $APP_ID $PORTAINER_ID
Docker
Stack compose
version: '3'
services:
web:
image: ${CI_REGISTRY_IMAGE}:${TAG_NAME}
deploy:
labels:
- "traefik.port=80"
- "traefik.docker.network=traefik-net"
- "traefik.frontend.rule=Host:myapplication.pmv.local"
networks:
- traefik-net
networks:
traefik-net:
external: true
GPTI Application Management
By Rogério Alencar Lino Filho
GPTI Application Management
Apresentação sobre o gerenciamento das aplicações da gerência
- 631