services/swarm/web.yaml
traveler b472efcf9e
Some checks are pending
Deploy on push / detect (push) Waiting to run
Deploy on push / deploy_swarm (push) Blocked by required conditions
Deploy on push / deploy_compose (push) Blocked by required conditions
gremlin: convert list-style blocks to map format in swarm/web.yaml
2026-05-07 16:43:50 -05:00

53 lines
1 KiB
YAML
Executable file

services:
web:
image: php:8.2-apache
container_name: web
hostname: web
user: "1964:1964"
networks:
- netgrimoire
volumes:
- /data/nfs/znas/Docker/web/pages:/var/www/html:rw
- /data/nfs/znas/Docker/web/apache:/etc/apache2/sites-enabled:ro
environment:
PUID: 1964
PGID: 1964
TZ: America/Chicago
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.cpu == amd
labels:
# Homepage
- "homepage.name=www.netgrimoire.com"
- "homepage.icon=mdi:web"
# Kuma
- "kuma.web.http.name=www.netgrimoire.com"
- "kuma.web.http.url=http://web:80"
# Caddy reverse proxy
- caddy=www.netgrimoire.com
- caddy.reverse_proxy="web:80"
# Diun
- "diun.enable=true"
networks:
netgrimoire:
external: true