fix: docker_compose_domains + worker depends_on crm-app healthy

This commit is contained in:
Agent Zero
2026-08-05 22:18:12 +02:00
parent c278597757
commit 2d25dc35e0
2 changed files with 20 additions and 2 deletions
+18 -2
View File
@@ -1179,8 +1179,24 @@ def deploy_initial() -> int:
steps.append(("Set envs", StepResult(False, str(e))))
_print_result(steps[-1][1])
# Step 4: Deploy via /api/v1/deploy (works for dockercompose build_pack)
print("\n[4/4] Deploying docker-compose stack...")
# Step 4: Set domain via docker_compose_domains + Deploy
print("\n[4/4] Setting domain and deploying...")
if APP_DOMAIN:
try:
resp = httpx.patch(
f"{client.base_url}/api/v1/applications/{app_uuid}",
headers=client.headers,
json={
"docker_compose_domains": [
{"name": "crm-app", "domain": APP_DOMAIN}
]
},
timeout=30,
)
print(f" Domain set: {APP_DOMAIN} ({resp.status_code})")
except Exception as e:
print(f" Warning: could not set domain: {e}")
try:
resp = httpx.post(
f"{client.base_url}/api/v1/deploy",