From 55213dc356ee84c290f3b294060aaee29b831d4c Mon Sep 17 00:00:00 2001 From: slhafzjw Date: Tue, 24 Feb 2026 18:40:35 +0800 Subject: [PATCH] chore: add docker-compose configuration for slhaf-hub service --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e6e60d6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +services: + slhaf-hub: + build: + context: . + dockerfile: Dockerfile + args: + BUILD_IMAGE: ${BUILD_IMAGE:-gradle:9.0.0-jdk17} + RUNTIME_IMAGE: ${RUNTIME_IMAGE:-eclipse-temurin:17-jre} + image: slhaf-hub:latest + container_name: slhaf-hub + restart: unless-stopped + ports: + - "${HOST_PORT:-8080}:8080" + environment: + HOST_API_TOKEN: ${HOST_API_TOKEN:-} + volumes: + - ./scripts:/app/scripts + command: ["--port=8080", "--scripts-dir=/app/scripts"]