diff --git a/swarm/DeployAgent.yaml b/swarm/DeployAgent.yaml new file mode 100644 index 0000000..34d7a13 --- /dev/null +++ b/swarm/DeployAgent.yaml @@ -0,0 +1,39 @@ +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 \ No newline at end of file