summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-14 13:45:29 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-14 13:45:29 +0100
commitc405fba0e1226c6eed08fe6435bcbc87314d82b4 (patch)
treeaf01d282635900a3d90af1076a89e34b2a9350ef /Applications
parent9b41dbdcb2c810804417b9ffc4e74a7b3e534ac2 (diff)
[web] dweipert.de
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Web/dweipert.de/.env.example2
-rw-r--r--Applications/Web/dweipert.de/docker-compose.yml20
2 files changed, 22 insertions, 0 deletions
diff --git a/Applications/Web/dweipert.de/.env.example b/Applications/Web/dweipert.de/.env.example
new file mode 100644
index 0000000..2cca88d
--- /dev/null
+++ b/Applications/Web/dweipert.de/.env.example
@@ -0,0 +1,2 @@
+DOMAIN=example.org
+TRAEFIK_NETWORK=traefik-public
diff --git a/Applications/Web/dweipert.de/docker-compose.yml b/Applications/Web/dweipert.de/docker-compose.yml
new file mode 100644
index 0000000..6f1efb9
--- /dev/null
+++ b/Applications/Web/dweipert.de/docker-compose.yml
@@ -0,0 +1,20 @@
+version: "3"
+
+services:
+ http:
+ image: nginx:alpine
+ restart: unless-stopped
+ volumes:
+ - "./html:/usr/share/nginx/html:ro"
+ networks:
+ - "traefik"
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.web-dweipert-de.rule=Host(`${DOMAIN}`)"
+ - "traefik.http.routers.web-dweipert-de.entrypoints=websecure"
+ - "traefik.http.routers.web-dweipert.de.tls.certresolver=letsencrypt"
+
+networks:
+ traefik:
+ name: "${TRAEFIK_NETWORK}"
+ external: true