Add Ink session recovery and Coolify Docker support

This commit is contained in:
2026-05-19 13:14:46 +02:00
parent dbcb8f4284
commit ebc8e1c7df
14 changed files with 290 additions and 20 deletions
+15
View File
@@ -36,6 +36,21 @@ npm run dev:cli # Run the CLI interface through ts-node/nodemon
Each game engine also has `:debug` and `:inspect` variants. `:debug` enables engine-specific diagnostic logging. `:inspect` starts Node with the inspector and currently also enables that engine's debug flag, so it is the combined debug-plus-inspector mode.
## Docker / Coolify Ink Deployment
The included `Dockerfile` builds and serves the Ink engine only. Coolify can use the repository Dockerfile directly.
Set the Coolify environment variables from `coolify.env.example`; at minimum:
```text
NODE_ENV=production
DEFAULT_GAME_ENGINE=ink
PORT=3000
INK_CONFIG_FILE=./config/engines/ink.json
```
The container compiles TypeScript during image build and compiles the configured Ink source to JSON when the server starts.
## Configuration
Environment variables are loaded from `.env`.