services/swarm/DeployAgent.yaml
traveler 0bf15fab63 df
2026-04-14 20:59:56 -05:00

39 lines
No EOL
1.1 KiB
YAML

services:
deploy-agent:
image: registry.netgrimoire.com/gremlin-deploy-agent:latest
environment:
TZ: America/Chicago
AGENT_SECRET: d11fbd7ddb53f8c2ec7b2eadd207f5ce3a97ba655501b69061687b77ef6273b4
REPO_PATH: /repo
DEPLOY_TIMEOUT: "300"
LOCAL_HOSTNAME: znas
VOLUME_UID_GID: "1964:1964"
KUMA_URL: https://kuma.netgrimoire.com
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/gremlin/services:/repo:rw
- /home/gremlin/.ssh/id_ed25519:/home/node/.ssh/id_ed25519:ro
networks:
- netgrimoire
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.platform.arch != aarch64
- node.platform.arch != arm
- node.hostname == znas
labels:
# --- Uptime Kuma ---
kuma.deploy-agent.http.name: Gremlin Deploy Agent
kuma.deploy-agent.http.url: http://deploy-agent:5000/health
# --- DIUN ---
diun.enable: "true"
networks:
netgrimoire:
external: true