From cd2b6cef4c5a9d6a4d5ec69a09aad0d7e4b86025 Mon Sep 17 00:00:00 2001 From: msnie Date: Wed, 30 Apr 2025 12:46:30 +0200 Subject: [PATCH] pangolin --- pangolin/config/traefik.yml | 35 +++++++++++++++++++++++++++++++++++ pangolin/docker-compose.yml | 10 +++++----- 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 pangolin/config/traefik.yml diff --git a/pangolin/config/traefik.yml b/pangolin/config/traefik.yml new file mode 100644 index 0000000..3f4e2d9 --- /dev/null +++ b/pangolin/config/traefik.yml @@ -0,0 +1,35 @@ +## STATIC CONFIGURATION +log: + level: INFO + filePath: /opt/traefik/logs/system.log + format: json +accessLog: + filePath: "/opt/traefik/logs/access.log" + +serversTransport: + insecureSkipVerify: true + +# api: +# insecure: true +# dashboard: false + +entryPoints: + web: + address: ":80" + websecure: + address: ":443" + +providers: + docker: + endpoint: "unix:///var/run/docker.sock" + exposedByDefault: false + +certificatesResolvers: + letsencr: + acme: + storage: '/etc/letsencrypt/acme.json' + email: stokogsten@gmail.com + httpChallenge: + entryPoint: web +pilot: + token: "adfb2efb-ef4d-419f-b012-a7f4825d22fd" diff --git a/pangolin/docker-compose.yml b/pangolin/docker-compose.yml index 59d4240..5efadc9 100644 --- a/pangolin/docker-compose.yml +++ b/pangolin/docker-compose.yml @@ -5,7 +5,7 @@ services: container_name: pangolin restart: unless-stopped volumes: - - ./config:/app/config + - /srv/pangolin/config:/app/config healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/"] interval: "3s" @@ -25,7 +25,7 @@ services: - --remoteConfig=http://pangolin:3001/api/v1/gerbil/get-config - --reportBandwidthTo=http://pangolin:3001/api/v1/gerbil/receive-bandwidth volumes: - - ./config:/var/config + - /srv/pangolin/config:/var/config cap_add: - NET_ADMIN - SYS_MODULE @@ -45,10 +45,10 @@ services: command: - --configFile=/etc/traefik/traefik_config.yml volumes: - - ./config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration - - ./config/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates + - ./config/traefik.yml:/etc/traefik:ro # Volume to store the Traefik configuration + - /srv/traefik/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates networks: default: driver: bridge - name: pangolin \ No newline at end of file + name: traefik \ No newline at end of file