diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-14 13:45:29 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-14 13:45:29 +0100 |
commit | c405fba0e1226c6eed08fe6435bcbc87314d82b4 (patch) | |
tree | af01d282635900a3d90af1076a89e34b2a9350ef | |
parent | 9b41dbdcb2c810804417b9ffc4e74a7b3e534ac2 (diff) |
[web] dweipert.de
-rwxr-xr-x | .local/bin/docker-compose-update | 6 | ||||
-rw-r--r-- | Applications/Web/dweipert.de/.env.example | 2 | ||||
-rw-r--r-- | Applications/Web/dweipert.de/docker-compose.yml | 20 |
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 |