a few tweaks to fix problems I found

This commit is contained in:
Brennen Raimer
2019-03-03 14:07:14 -05:00
parent 24b0057bfb
commit feb6eb2d7a
4 changed files with 22 additions and 14 deletions

View File

@@ -11,8 +11,8 @@ defaultEntryPoints = ["https","http"]
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[entryPoints.traefik]
address = ":8080"
# [entryPoints.traefik]
# address = ":8080"
[retry]
@@ -67,9 +67,13 @@ defaultEntryPoints = ["https","http"]
# Enable web configuration backend
# https://docs.traefik.io/configuration/api/
[api]
entryPoint = "traefik"
dashboard = true
#[api]
#entryPoint = "traefik"
#dashboard = true
[file]
directory = "/etc/traefik/rules"
watch = true
[docker]
endpoint = "unix:///var/run/docker.sock"

View File

@@ -132,6 +132,7 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock #allows traefik to monitor for changes and to read labels
- ./configs/traefik.toml:/etc/traefik/traefik.toml #traefik config file
- ./rules:/etc/traefik/rules
- traefik-cert-gc:/etc/traefik/acme/ #volume for storing LetsEncrypt cets
#The following section allows you to deifne services which must be started before this service can start
depends_on:

10
gatecounter-test.toml Normal file
View File

@@ -0,0 +1,10 @@
[backends]
[backends.gatecounter]
[backends.gatecounter.servers.gatecounter-server]
url = "http://grafana:3000"
[frontends]
[frontends.gatecounter]
entryPoints = ["http"]
backend = "gatecounter"
[frontends.gatecounter.routes.test]
rule = "HostRegexp:grafana.{hostname:[a-z]+}{suffix:(\.local|\.home)}"

View File

@@ -1,14 +1,7 @@
#!/bin/bash
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=armhf] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
sudo apt-get update && sudo apt-get -y install docker-ce
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && \
sudo apt-get update && sudo apt-get -y install docker-ce && sudo usermod -a -G docker $USER
sudo apt-get install -y python-pip
sudo pip install docker-compose