diff --git a/web.yaml b/web.yaml new file mode 100644 index 0000000..2022600 --- /dev/null +++ b/web.yaml @@ -0,0 +1,42 @@ + version: "3.9" + +services: + web: + image: php:8.2-apache + container_name: web + hostname: web + user: "1001:998" + networks: + - netgrimoire + volumes: + - /data/nfs/Baxter/Docker/web:/var/www/html:rw + environment: + - PUID=1001 + - PGID=998 + - TZ=America/Chicago + labels: + # Homepage + - "homepage.name=www.wasted-bandwidth.net" + - "homepage.icon=mdi:web" + # Kuma + - "kuma.web.http.name=www.wasted-bandwidth.net" + - "kuma.web.http.url=http://web:80" + # Caddy reverse proxy + - "caddy.wasted-bandwidth.net.reverse_proxy={{upstreams 80}}" + - "caddy.wasted-bandwidth.net.encode=zstd" + # Diun + - "diun.enable=true" + - "diun.notification.ntfy=true" + + deploy: + mode: replicated + replicas: 1 + restart_policy: + condition: any + delay: 5s + max_attempts: 3 + window: 120s + +networks: + netgrimoire: + external: true