about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-08 00:20:12 +0200
committerEmile <hanemile@protonmail.com>2019-10-08 00:20:12 +0200
commitd95f9734ae4a51d49f04c3a5f7aa33494bb48303 (patch)
treed07b759641d3fb09423f935f52009146d3a1de70
parent14d8c2050c831b1c076323827d94fa8e6cacd7ad (diff)
simple docker-compose starting traefik 2.0
-rw-r--r--docker-compose.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..1c61dd6
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,29 @@
+version: "3.3"
+    
+services:
+    traefik:
+        image: "traefik:v2.0"
+        container_name: "traefik"
+        command:
+            - "--api.insecure=true"
+            - "--providers.docker=true"
+            - "--providers.docker.exposedbydefault=false"
+            - "--entrypoints.web.address=:80"
+            - "--metrics.prometheus=true"
+        ports:
+            - "80:80"
+            - "8080:8080"
+        volumes:
+            - "/var/run/docker.sock:/var/run/docker.sock:ro"
+        labels:
+            - "traefik.enable=true"
+            - "traefik.http.routers.traefik.entrypoints=web"
+            - "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)"
+            - "traefik.http.services.traefik.loadbalancer.server.port=8080"
+        networks:
+            - circus
+
+networks:
+    circus:
+        external:
+            name: circus