feat: add shared ai workspace assistant service
This commit is contained in:
@@ -20,6 +20,8 @@ services:
|
||||
condition: service_started
|
||||
ai-workspace-hub:
|
||||
condition: service_started
|
||||
ai-workspace-assistant:
|
||||
condition: service_started
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
@@ -128,6 +130,46 @@ services:
|
||||
notification-postgres:
|
||||
condition: service_healthy
|
||||
|
||||
ai-workspace-postgres:
|
||||
image: docker.io/library/postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
POSTGRES_DB: ${AI_WORKSPACE_PG_DB:-nodedc_ai_workspace}
|
||||
POSTGRES_PASSWORD: ${AI_WORKSPACE_PG_PASS:-nodedc_ai_workspace}
|
||||
POSTGRES_USER: ${AI_WORKSPACE_PG_USER:-nodedc_ai_workspace}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
volumes:
|
||||
- ai-workspace-database:/var/lib/postgresql/data
|
||||
|
||||
ai-workspace-assistant:
|
||||
image: nodedc/ai-workspace-assistant:local
|
||||
build:
|
||||
context: ../services/ai-workspace-assistant
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 18082
|
||||
DATABASE_URL: postgres://${AI_WORKSPACE_PG_USER:-nodedc_ai_workspace}:${AI_WORKSPACE_PG_PASS:-nodedc_ai_workspace}@ai-workspace-postgres:5432/${AI_WORKSPACE_PG_DB:-nodedc_ai_workspace}
|
||||
AI_WORKSPACE_ASSISTANT_TOKEN: ${AI_WORKSPACE_ASSISTANT_TOKEN:-dev-ai-workspace-assistant-token}
|
||||
expose:
|
||||
- "18082"
|
||||
ports:
|
||||
- "${AI_WORKSPACE_ASSISTANT_HOST_BIND:-127.0.0.1:18082}:18082"
|
||||
depends_on:
|
||||
ai-workspace-postgres:
|
||||
condition: service_healthy
|
||||
|
||||
ai-workspace-hub:
|
||||
image: nodedc/ai-workspace-hub:local
|
||||
build:
|
||||
@@ -151,5 +193,6 @@ volumes:
|
||||
authentik-data:
|
||||
authentik-certs:
|
||||
notification-database:
|
||||
ai-workspace-database:
|
||||
caddy-data:
|
||||
caddy-config:
|
||||
|
||||
Reference in New Issue
Block a user