fix: correct NEXT_PUBLIC_DRAWIO_BASE_URL in offline deployment docs (#198)

- Fix wrong URL (http://drawio:8080 -> http://localhost:8080)
- Browser cannot resolve Docker internal hostnames
- Add docker-compose.yml example
- Simplify documentation
This commit is contained in:
Dayuan Jiang
2025-12-10 14:20:34 +09:00
committed by GitHub
parent 9d4c89ec43
commit 9a954ccb44
2 changed files with 30 additions and 42 deletions

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
services:
drawio:
image: jgraph/drawio:latest
ports: ["8080:8080"]
next-ai-draw-io:
build:
context: .
args:
- NEXT_PUBLIC_DRAWIO_BASE_URL=http://localhost:8080
ports: ["3000:3000"]
env_file: .env
depends_on: [drawio]