Commit 2304b257 authored by CarlosEDP's avatar CarlosEDP
Browse files

Changed networks, removed docker-compose file for management containers to another repo

parent 7f41ca9e
version: '2'
version: '3'
volumes:
prometheus_data: {}
......@@ -6,6 +6,9 @@ volumes:
networks:
default:
traefik:
external:
name: containermgmt_traefik
services:
......@@ -17,6 +20,9 @@ services:
restart: unless-stopped
ports:
- 9090:9090
networks:
- default
- traefik
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
......@@ -60,6 +66,10 @@ services:
- /var/lib/docker/:/var/lib/docker:ro
# deploy:
# mode: global
command:
- --global_housekeeping_interval=30s
- --housekeeping_interval=5s
- --storage_duration=1m0s
# alertmanager:
# image: napnap75/rpi-prometheus:alertmanager
......@@ -81,6 +91,9 @@ services:
depends_on:
- prometheus
restart: unless-stopped
networks:
- default
- traefik
ports:
- 3000:3000
volumes:
......@@ -90,7 +103,7 @@ services:
labels:
- "traefik.backend=grafana"
- "traefik.frontend.rule=Host:grafana.cloud.carlosedp.com"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_default"
- "traefik.docker.network=containermgmt_traefik"
- "traefik.enable=true"
- "traefik.port=3000"
- "traefik.default.protocol=http"
......
version: '2'
networks:
default:
services:
traefik:
image: traefik:v1.5.0-rc5
restart: always
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $PWD/traefik/:/etc/traefik/
command:
- '--configFile=/etc/traefik/traefik.toml \'
# - '--logLevel=DEBUG'
portainer:
image: portainer/portainer
restart: always
ports:
- 9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
- "traefik.backend=portainer"
- "traefik.frontend.rule=Host:portainer.cloud.carlosedp.com"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_monitoring"
- "traefik.enable=true"
- "traefik.port=9000"
- "traefik.default.protocol=http"
volumes:
portainer_data: {}
defaultEntryPoints = ["http","https"]
debug = false
logLevel = "INFO"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "carlosedp@gmail.com"
storage = "/etc/traefik/acme.json"
entryPoint = "https"
onDemand = false
OnHostRule = true
caServer = "https://acme-v01.api.letsencrypt.org/directory"
[acme.httpChallenge]
entryPoint="http"
# Web configuration backend
[web]
address = ":8080"
[web.metrics.prometheus]
buckets=[0.1,0.3,1.2,5.0]
entryPoint = "traefik"
# Docker configuration backend
[docker]
domain = "cloud.carlosedp.com"
watch = true
exposedbydefault = false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment