dockhand start mods

This commit is contained in:
2026-03-17 19:45:59 -07:00
parent 463ee45551
commit 4798157de9
3 changed files with 1 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
# Dockhand
Port: 3000
I'm using this to replace portainer.
## Run an Agent
```
docker run -d \
--name hawser-dockhand-agent \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DOCKHAND_URL="https://dockhand.example.com" \
-e DOCKHAND_TOKEN="PFTtPtVFcJ7nCppmbVzqCN4pt4Vxzkjp" \
ghcr.io/dockhand/hawser:latest
```
## Ansible
This is how I got it working on ansible (roughly):
```
- name: HAWSER - Pull Docker Image
docker_image:
name: "ghcr.io/finsys/hawser:{{ hawser_version }}"
source: pull
- name: HAWSER - Ensure container is running
docker_container:
name: hawser
recreate: true
image: "ghcr.io/finsys/hawser:{{ hawser_version }}"
state: started
restart_policy: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
env:
DOCKHAND_SERVER_URL: "{{ dockhand_url }}"
TOKEN: "{{ hawser_token }}"
AGENT_NAME: "{{ hawser_agent_name }}"
```
## NTFY Notifications
NTFY with authentication can be tricky, here is a working example where TOKEN is your token from NTFY:
```
ntfys://TOKEN@ntfy.nickyeoman.com/dockhand
```
ntfy:// can be used for unsecure.
+11
View File
@@ -0,0 +1,11 @@
services:
dockhand:
image: fnsys/dockhand:latest
container_name: dockhand
restart: unless-stopped
ports:
- 3000:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/dockhand_data:/app/data
+1
View File
@@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=dockhand