Skip to content

Commit 5bee392

Browse files
committed
fix(showcase): fix docker-compose.local.yml aimock config + remove dev-local.sh
- Mount D5/smoke/feature-parity fixtures into aimock via volumes - Add --host 0.0.0.0 so other containers can reach aimock - Switch healthcheck from curl to node fetch (aimock image has no curl) - Delete dev-local.sh (redundant with bin/showcase CLI)
1 parent 62724f2 commit 5bee392

2 files changed

Lines changed: 6 additions & 89 deletions

File tree

showcase/docker-compose.local.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ services:
3131
- "4010:4010"
3232
profiles: ["infra", "all"]
3333
restart: unless-stopped
34+
volumes:
35+
- ./aimock/d5-all.json:/showcase-fixtures/d5-all.json:ro
36+
- ./aimock/smoke.json:/showcase-fixtures/smoke.json:ro
37+
- ./aimock/feature-parity.json:/showcase-fixtures/feature-parity.json:ro
38+
command: ["--port", "4010", "--host", "0.0.0.0", "--fixtures", "/showcase-fixtures/d5-all.json", "--fixtures", "/showcase-fixtures/smoke.json", "--fixtures", "/showcase-fixtures/feature-parity.json"]
3439
healthcheck:
35-
test: ["CMD", "curl", "-f", "http://localhost:4010/health"]
40+
test: ["CMD", "node", "-e", "fetch('http://localhost:4010/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
3641
interval: 5s
3742
timeout: 3s
3843
retries: 5

showcase/scripts/dev-local.sh

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)