about summary refs log tree commit diff
diff options
context:
space:
mode:
-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