wishforge-ide/infra/compose.yaml
eust-w da1cfcea13 🔥 Remove the cloud IDE
The cluster never ran Theia or the IDE gateway, so every workspace stayed
"未配置" forever. The feature is gone instead of half-present:

- API: workspace, launch and lifecycle endpoints, the gateway identity and
  its internal routes, the dispatcher's workspace provisioning and the
  lifecycle worker. Migration 003 deletes stored workspaces and settles
  their pending outbox items.
- Provisioner: workspace provisioning and lifecycle for both backends.
- Web: the 云 IDE panel, the launch route, the start-branch picker that
  listed IDE branches, and the workspace count on usage.
- apps/ide, infra/oct, dev:ide and the CI job; IDE parts of local k3s,
  network policies, RBAC, docs and the architecture diagram.

A wish can still start from a pushed branch through the API (sourceBranch).
Plan files and stored entitlements may still carry maxWorkspaces; it is
accepted and ignored.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-04 12:43:02 +08:00

120 lines
3.9 KiB
YAML

name: wishforge-dev
# LOCAL DEVELOPMENT ONLY. All published ports are loopback-bound. Credentials
# below are deliberately public development fixtures and are never production defaults.
services:
postgres:
image: postgres:17.6
environment:
POSTGRES_USER: wishforge
POSTGRES_PASSWORD: wishforge-dev-only
POSTGRES_DB: wishforge
ports: ['127.0.0.1:${WISHFORGE_POSTGRES_PORT:-55432}:5432']
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/001-keycloak.sql:/docker-entrypoint-initdb.d/001-keycloak.sql:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U wishforge -d wishforge']
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
temporal-volume-init:
image: temporalio/temporal:1.4.1
user: '0:0'
entrypoint: ['/bin/sh', '-ec']
command: ['chown 1000:1000 /var/lib/temporal']
volumes: ['temporal-data:/var/lib/temporal']
restart: 'no'
temporal:
image: temporalio/temporal:1.4.1
command:
['server', 'start-dev', '--ip', '0.0.0.0', '--db-filename', '/var/lib/temporal/temporal.db', '--ui-port', '8233']
ports: ['127.0.0.1:7233:7233', '127.0.0.1:8233:8233']
volumes: ['temporal-data:/var/lib/temporal']
depends_on:
temporal-volume-init: { condition: service_completed_successfully }
healthcheck:
test: ['CMD', 'temporal', 'operator', 'cluster', 'health', '--address', '127.0.0.1:7233']
interval: 5s
timeout: 10s
retries: 30
restart: unless-stopped
keycloak:
image: keycloak/keycloak:26.2.5
command: ['start-dev', '--import-realm', '--health-enabled=true']
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: wishforge-admin-dev-only
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: keycloak-dev-only
KC_HOSTNAME: http://127.0.0.1:4100
depends_on:
postgres: { condition: service_healthy }
ports: ['127.0.0.1:4100:8080']
volumes: ['./keycloak/wishforge-realm.json:/opt/keycloak/data/import/wishforge-realm.json:ro']
healthcheck:
test:
[
'CMD-SHELL',
"bash -ec 'exec 3<>/dev/tcp/127.0.0.1/9000; printf \"GET /health/ready HTTP/1.0\r\n\r\n\" >&3; head -1 <&3 | grep -q 200'",
]
interval: 10s
timeout: 5s
start_period: 30s
retries: 30
restart: unless-stopped
minio:
image: quay.io/minio/minio:RELEASE.2025-07-23T15-54-02Z
command: ['server', '/data', '--console-address', ':9001']
environment:
MINIO_ROOT_USER: wishforge-dev
MINIO_ROOT_PASSWORD: wishforge-minio-dev-only
ports: ['127.0.0.1:49000:9000', '127.0.0.1:49001:9001']
volumes: ['s3-data:/data']
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:9000/minio/health/live']
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
minio-init:
image: quay.io/minio/mc:RELEASE.2025-07-21T05-28-08Z
depends_on:
minio: { condition: service_healthy }
entrypoint: ['/bin/sh', '-ec']
command:
- >-
mc alias set local http://minio:9000 wishforge-dev wishforge-minio-dev-only >/dev/null;
mc mb --ignore-existing local/wishforge-artifacts;
mc mb --ignore-existing local/wishforge-workspaces;
mc mb --ignore-existing local/wishforge-evidence;
mc version enable local/wishforge-evidence
restart: 'no'
registry:
image: registry:2.8.3
ports: ['127.0.0.1:45000:5000']
volumes: ['registry-data:/var/lib/registry']
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'false'
healthcheck:
test: ['CMD', 'wget', '-q', '--spider', 'http://127.0.0.1:5000/v2/']
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
volumes:
postgres-data:
temporal-data:
s3-data:
registry-data: