Add dockhand

This commit is contained in:
2026-02-22 21:21:55 +05:30
parent 62ed05f028
commit 6f70e974a4
2 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
services:
hawser:
container_name: hawserd
image: ghcr.io/finsys/hawser:0.2.27@sha256:63d0a5fb81fe64cc0f7e0cbede54889b114fd3d634d2ee18e0fee89d7854873a
restart: unless-stopped
environment:
- AGENT_NAME=${AGENT_NAME}
- TOKEN=${TOKEN}
- LOG_LEVEL=${LOG_LEVEL}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 2376:2376
networks:
- frontend
networks:
frontend:
external: true

View File

@@ -0,0 +1,44 @@
services:
dockhand_db:
container_name: dockhand_db
image: docker.io/library/postgres:18.1@sha256:1090bc3a8ccfb0b55f78a494d76f8d603434f7e4553543d6e807bc7bd6bbd17f
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/18/docker
volumes:
- ./db:/var/lib/postgresql
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
dockhand:
container_name: dockhand
image: fnsys/dockhand:v1.0.18@sha256:81ee6728840ea99978d811d9dfa61e5445467e01502320fa7733bcf7e567d105
restart: unless-stopped
depends_on:
dockhand_db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@dockhand_db:5432/${POSTGRES_DB}
volumes:
- ./data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3000:3000
networks:
- frontend
- backend
networks:
frontend:
external: true
backend:
external: true