a few tweaks to fix problems I found
This commit is contained in:
@@ -11,8 +11,8 @@ defaultEntryPoints = ["https","http"]
|
|||||||
[entryPoints.https]
|
[entryPoints.https]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
[entryPoints.https.tls]
|
[entryPoints.https.tls]
|
||||||
[entryPoints.traefik]
|
# [entryPoints.traefik]
|
||||||
address = ":8080"
|
# address = ":8080"
|
||||||
|
|
||||||
[retry]
|
[retry]
|
||||||
|
|
||||||
@@ -67,9 +67,13 @@ defaultEntryPoints = ["https","http"]
|
|||||||
|
|
||||||
# Enable web configuration backend
|
# Enable web configuration backend
|
||||||
# https://docs.traefik.io/configuration/api/
|
# https://docs.traefik.io/configuration/api/
|
||||||
[api]
|
#[api]
|
||||||
entryPoint = "traefik"
|
#entryPoint = "traefik"
|
||||||
dashboard = true
|
#dashboard = true
|
||||||
|
|
||||||
|
[file]
|
||||||
|
directory = "/etc/traefik/rules"
|
||||||
|
watch = true
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
endpoint = "unix:///var/run/docker.sock"
|
endpoint = "unix:///var/run/docker.sock"
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock #allows traefik to monitor for changes and to read labels
|
- /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
|
- ./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
|
- 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
|
#The following section allows you to deifne services which must be started before this service can start
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
10
gatecounter-test.toml
Normal file
10
gatecounter-test.toml
Normal 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)}"
|
||||||
@@ -1,14 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo apt-get remove docker docker-engine docker.io containerd runc
|
sudo apt-get remove docker docker-engine docker.io containerd runc
|
||||||
sudo apt-get update && sudo apt-get -y dist-upgrade
|
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://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && \
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
|
sudo apt-get update && sudo apt-get -y install docker-ce && sudo usermod -a -G docker $USER
|
||||||
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
|
|
||||||
sudo apt-get install -y python-pip
|
sudo apt-get install -y python-pip
|
||||||
sudo pip install docker-compose
|
sudo pip install docker-compose
|
||||||
|
|||||||
Reference in New Issue
Block a user