summaryrefslogtreecommitdiff
path: root/Applications/Traefik
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
initial commit
Diffstat (limited to 'Applications/Traefik')
-rw-r--r--Applications/Traefik/.env.example2
-rw-r--r--Applications/Traefik/docker-compose.yml28
2 files changed, 30 insertions, 0 deletions
diff --git a/Applications/Traefik/.env.example b/Applications/Traefik/.env.example
new file mode 100644
index 0000000..9c0f2a6
--- /dev/null
+++ b/Applications/Traefik/.env.example
@@ -0,0 +1,2 @@
+DOMAIN=traefik.archion.sls19.lan
+NETWORK=traefik-public
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}"