Adds prettier 3.9.8 (exact) with a shared config (single quotes, 120 columns, trailing commas), .prettierignore, .editorconfig and the `format` / `format:check` scripts, then formats all TypeScript, JavaScript, CSS, JSON and YAML sources. Purely mechanical: no behaviour change. Typecheck passes, the vitest suite and the 74 IDE node tests produce the same results as before (socket-binding tests still cannot run inside this sandbox). Previously the longest source line was ~3000 characters; reviewing the following semantic changes now produces readable diffs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
130 lines
4.1 KiB
YAML
130 lines
4.1 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
|
|
|
|
oct:
|
|
profiles: ['ide']
|
|
build: { context: ./oct }
|
|
image: wishforge/oct:0.3.1-wf1
|
|
environment:
|
|
OCT_ACTIVATE_SIMPLE_LOGIN: 'true'
|
|
ports: ['127.0.0.1:48100:8100']
|
|
restart: unless-stopped
|
|
# OCT 0.3.1 holds rooms in memory: restart requires a new room/rejoin.
|
|
|
|
volumes:
|
|
postgres-data:
|
|
temporal-data:
|
|
s3-data:
|
|
registry-data:
|