From 7b1a195af6af12d10dc6cf1c68370b083db543e5 Mon Sep 17 00:00:00 2001 From: orion Date: Wed, 15 Apr 2026 04:46:56 +0000 Subject: [PATCH] feat: re-add hf_backend with restart:no, hf_frontend depends on both hf_backend and wizard --- docker-compose.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 04a2d17..047cb86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,17 +38,21 @@ services: networks: - app-network - hf_frontend: - image: git.hangman-lab.top/zhi/harborforge-frontend:latest + hf_backend: + image: git.hangman-lab.top/zhi/harborforge-backend:multi-stage + restart: "no" ports: - - "$HF_FRONTEND_PORT:3000" + - "$HF_BACKEND_PORT:8000" + volumes: + - wizard_config:/config:ro environment: - VITE_API_BASE_URL: http://wizard:${WIZARD_PORT:-8082} - VITE_WIZARD_PORT: ${WIZARD_PORT:-8082} - FRONTEND_DEV_MODE: ${HF_FRONTEND_DEV_MODE:-0} - NODE_ENV: production + CONFIG_DIR: /config + CONFIG_FILE: harborforge.json + SECRET_KEY: ${HF_SECRET_KEY:-change_me_in_production} + LOG_LEVEL: ${HF_LOG_LEVEL:-INFO} depends_on: - - wizard + mysql: + condition: service_healthy networks: - app-network @@ -66,6 +70,22 @@ services: networks: - app-network + hf_frontend: + image: git.hangman-lab.top/zhi/harborforge-frontend:latest + restart: "no" + ports: + - "$HF_FRONTEND_PORT:3000" + environment: + VITE_API_BASE_URL: http://hf_backend:${HF_BACKEND_PORT:-8000} + VITE_WIZARD_PORT: ${WIZARD_PORT:-8082} + FRONTEND_DEV_MODE: ${HF_FRONTEND_DEV_MODE:-0} + NODE_ENV: production + depends_on: + - hf_backend + - wizard + networks: + - app-network + networks: app-network: driver: bridge