services/web.yaml
traveler 8413596d08 h
2025-10-27 15:31:34 -05:00

43 lines
955 B
YAML

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=www.wastedpbandwidth.net
- caddy.import=authentik
- caddy.reverse_proxy={{upstreams 80}}
# 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