services/swarm/web.yaml
traveler 7a40838042
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
Merge branch 'master' of http://192.168.5.10:3024/traveler/services
2026-05-07 16:45:32 -05:00

54 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:
gremlin.port: "80"
# 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