fix: connect tasker backend to ai workspace network

This commit is contained in:
DCCONSTRUCTIONS 2026-06-09 15:48:11 +03:00
parent fcd014e26d
commit 8b1e356494
5 changed files with 36 additions and 2 deletions

View File

@ -32,6 +32,19 @@ Backend integration:
- `PLANE_NODEDC_WORKSPACE_POLICY_URL`
- `PLANE_NODEDC_ACCESS_CHECK_URL`
- `PLANE_NODEDC_ACCESS_TOKEN`
- `NODEDC_ENGINE_DOCKER_NETWORK`
- `PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL`
- `PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TOKEN`
AI Workspace Console uses the shared Platform `ai-workspace-assistant` service. Tasker does not connect to AI Workspace Hub directly. The Tasker backend containers must be attached to the same Docker network as Platform/Engine through `NODEDC_ENGINE_DOCKER_NETWORK`; on NAS this is currently `nodedc-demo_default`, while local development uses `nodedc-platform_default`.
Use the internal service URL on that shared network:
```env
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=http://ai-workspace-assistant:18082
```
The Assistant generates Codex worker installers with the public Hub endpoint `wss://ai-hub.nodedc.ru/api/ai-workspace/hub`. Do not point Tasker directly at the Hub and do not expose Assistant as a public Nginx/DSM route.
Production secrets remain in NAS env files or a secret store. They must not be committed.

View File

@ -162,6 +162,9 @@ services:
- plane-db
- plane-redis
- plane-mq
networks:
- default
- nodedc-engine
worker:
image: nodedc/plane-backend:local
@ -182,6 +185,9 @@ services:
- plane-db
- plane-redis
- plane-mq
networks:
- default
- nodedc-engine
beat-worker:
image: nodedc/plane-backend:local
@ -202,6 +208,9 @@ services:
- plane-db
- plane-redis
- plane-mq
networks:
- default
- nodedc-engine
migrator:
image: nodedc/plane-backend:local
@ -220,6 +229,9 @@ services:
depends_on:
- plane-db
- plane-redis
networks:
- default
- nodedc-engine
# Comment this if you already have a database running
plane-db:
@ -307,3 +319,9 @@ volumes:
rabbitmq_data:
proxy_config:
proxy_data:
networks:
default:
nodedc-engine:
external: true
name: ${NODEDC_ENGINE_DOCKER_NETWORK:-nodedc-demo_default}

View File

@ -120,6 +120,7 @@ PLANE_NODEDC_WORKSPACE_POLICY_TIMEOUT_SECONDS=3
PLANE_NODEDC_AGENT_GATEWAY_URL=http://host.docker.internal:4100
PLANE_NODEDC_AGENT_GATEWAY_TOKEN=local-dev-codex-agent-gateway-token-change-me
PLANE_NODEDC_AGENT_GATEWAY_TIMEOUT_SECONDS=5
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=http://host.docker.internal:18082
NODEDC_ENGINE_DOCKER_NETWORK=nodedc-platform_default
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=http://ai-workspace-assistant:18082
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TOKEN=dev-ai-workspace-assistant-token
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TIMEOUT_SECONDS=8

View File

@ -90,6 +90,7 @@ PULL_POLICY=if_not_present
CUSTOM_BUILD=false
# NODE.DC AI Workspace Assistant
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=
NODEDC_ENGINE_DOCKER_NETWORK=nodedc-platform_default
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=http://ai-workspace-assistant:18082
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TOKEN=
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TIMEOUT_SECONDS=8

View File

@ -97,6 +97,7 @@ PLANE_NODEDC_WORKSPACE_POLICY_TIMEOUT_SECONDS=3
PLANE_NODEDC_AGENT_GATEWAY_URL=https://codex-api.staging.nodedc.example
PLANE_NODEDC_AGENT_GATEWAY_TOKEN=replace-with-codex-agent-gateway-internal-token
PLANE_NODEDC_AGENT_GATEWAY_TIMEOUT_SECONDS=5
NODEDC_ENGINE_DOCKER_NETWORK=nodedc-demo_default
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_URL=http://ai-workspace-assistant:18082
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TOKEN=replace-with-ai-workspace-assistant-token
PLANE_NODEDC_AI_WORKSPACE_ASSISTANT_TIMEOUT_SECONDS=8