summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/docker-compose-update6
-rw-r--r--Applications/Web/dweipert.de/.env.example2
-rw-r--r--Applications/Web/dweipert.de/docker-compose.yml20
3 files changed, 25 insertions, 3 deletions
diff --git a/.local/bin/docker-compose-update b/.local/bin/docker-compose-update
index ba76da1..6a012de 100755
--- a/.local/bin/docker-compose-update
+++ b/.local/bin/docker-compose-update
@@ -1,4 +1,4 @@
-docker compose down
-docker compose build
-docker compose pull
+docker compose down $@
+docker compose build $@
+docker compose pull $@
docker compose up -d $@
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