Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fl0id
arm monitoring
Commits
2304b257
Commit
2304b257
authored
Jan 30, 2018
by
CarlosEDP
Browse files
Changed networks, removed docker-compose file for management containers to another repo
parent
7f41ca9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
2304b257
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"
...
...
traefik-portainer.yml
deleted
100644 → 0
View file @
7f41ca9e
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
:
{}
traefik/traefik.toml
deleted
100644 → 0
View file @
7f41ca9e
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment