Add Ink session recovery and Coolify Docker support
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user