# 开源项目门户部署编排 # # docker compose -f deploy/docker-compose.yml up -d --build # # 形态切换(站点资源前缀): # SITE_BASE=/www/ 子路径形态,挂在已有网关的 /www/ 路径下(默认) # SITE_BASE=/ 独立域名形态,站点独占域名根路径 # # SITE_BASE=/ docker compose -f deploy/docker-compose.yml up -d --build services: portal: build: context: .. dockerfile: Dockerfile args: SITE_BASE: '${SITE_BASE:-/www/}' image: snowgoat-open-portal:local container_name: snowgoat-open-portal restart: unless-stopped ports: - "127.0.0.1:${PORTAL_PORT:-8020}:80" healthcheck: test: ["CMD", "wget", "--quiet", "--output-document=/dev/null", "http://127.0.0.1${SITE_BASE:-/www/}"] interval: 30s timeout: 5s retries: 3 start_period: 10s