瀏覽代碼

Adds traefik stack

Alicia Sykes 2 年之前
父節點
當前提交
b3529c56a8
共有 2 個文件被更改,包括 40 次插入0 次删除
  1. 18 0
      sources/lissy93_templates.json
  2. 22 0
      sources/stacks/traefik.yml

+ 18 - 0
sources/lissy93_templates.json

@@ -200,6 +200,24 @@
       "restart_policy": "unless-stopped",
       "title": "Outline",
       "type": 3
+    },
+    {
+      "categories": [
+        "Web",
+        "Network"
+      ],
+      "description": " The Cloud Native Application Proxy ",
+      "env": [],
+      "logo": "https://raw.githubusercontent.com/traefik/traefik/master/docs/content/assets/img/traefik.logo.png",
+      "name": "traefik",
+      "platform": "linux",
+      "repository": {
+        "stackfile": "sources/stacks/traefik.yml",
+        "url": "https://github.com/lissy93/portainer-templates"
+      },
+      "restart_policy": "unless-stopped",
+      "title": "Outline",
+      "type": 3
     }
   ]
 }

+ 22 - 0
sources/stacks/traefik.yml

@@ -0,0 +1,22 @@
+version: '3'
+
+services:
+  reverse-proxy:
+    image: traefik:v2.10
+    command: --api.insecure=true --providers.docker
+    ports:
+      - "80:80"
+      - "8080:8080"
+      - target: 80
+        published: 80
+        protocol: tcp
+        mode: host
+      - target: 8080
+        published: 8080
+        protocol: tcp
+        mode: host
+    restart: always
+    volumes:
+      - type: bind
+        source: /var/run/docker.sock
+        target: /var/run/docker.sock