From 92347aa868d7d7632c9b9edf317dd0c3b8cab638 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Fri, 1 May 2026 00:25:06 -0700 Subject: [PATCH] Created Hawser --- Hawser/.env.example | 8 ++++++++ Hawser/docker-compose-bind.yaml | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Hawser/.env.example create mode 100644 Hawser/docker-compose-bind.yaml diff --git a/Hawser/.env.example b/Hawser/.env.example new file mode 100644 index 0000000..8c68eec --- /dev/null +++ b/Hawser/.env.example @@ -0,0 +1,8 @@ +# Host port to expose the Hawser API on +HAWSER_PORT=2376 + +# Linux username whose home directory holds the stacks volume +HAWSER_USERNAME= + +# Authentication token for the Hawser API +HAWSER_Token= diff --git a/Hawser/docker-compose-bind.yaml b/Hawser/docker-compose-bind.yaml new file mode 100644 index 0000000..42e7bc2 --- /dev/null +++ b/Hawser/docker-compose-bind.yaml @@ -0,0 +1,23 @@ +services: + hawser: + image: ghcr.io/finsys/hawser:latest + container_name: hawser + ports: + - "${HAWSER_PORT}:2376" + volumes: + - /home/${HAWSER_USERNAME}/hawser/stacks:/data/stacks + - /var/run/docker.sock:/var/run/docker.sock + environment: + - TOKEN=${HAWSER_Token} + - PORT=2376 + healthcheck: + test: ["CMD-SHELL", "if [ -n \"$$TLS_CERT\" ]; then wget -q --spider --no-check-certificate https://localhost:$$PORT/_hawser/health; else wget -q --spider http://localhost:$$PORT/_hawser/health; fi || exit 1"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 5s + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped \ No newline at end of file