summaryrefslogtreecommitdiff
path: root/Applications/Traefik/docker-compose.yml
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-18 15:56:31 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-18 15:57:46 +0200
commitb18e29b389792267269c77db711b54d38e6b9d59 (patch)
tree973ad914da9105cc526df1690cc99dc038fea5e4 /Applications/Traefik/docker-compose.yml
initial commit
Diffstat (limited to 'Applications/Traefik/docker-compose.yml')
-rw-r--r--Applications/Traefik/docker-compose.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/Applications/Traefik/docker-compose.yml b/Applications/Traefik/docker-compose.yml
new file mode 100644
index 0000000..b432691
--- /dev/null
+++ b/Applications/Traefik/docker-compose.yml
@@ -0,0 +1,28 @@
+version: "3"
+
+services:
+ traefik:
+ image: "traefik"
+ container_name: "traefik"
+ restart: "always"
+ command:
+ - "--api.insecure=true"
+ - "--entrypoints.web.address=:80"
+ - "--providers.docker=true"
+ - "--providers.docker.exposedbydefault=false"
+ ports:
+ - "80:80"
+ labels:
+ - "traefik.enable=true"
+ # Dashboard
+ - "traefik.http.services.loadbalancer.server.port=8080"
+ - "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)"
+ - "traefik.http.routers.traefik.entrypoints=web"
+ volumes:
+ - "/var/run/docker.sock:/var/run/docker.sock"
+ networks:
+ - "traefik"
+
+networks:
+ traefik:
+ name: "${NETWORK}"