build: add internal container deployment
This commit is contained in:
parent
b69de71029
commit
83efa5b051
3 changed files with 62 additions and 0 deletions
20
README.md
20
README.md
|
|
@ -116,3 +116,23 @@ DATABASE_URL=file:/data/dimensionlab.sqlite HOST=0.0.0.0 PORT=3000 bun build/ind
|
|||
Mount `/data` or set `DATABASE_URL` to another persistent SQLite path. If the
|
||||
process starts outside the repository root, set `DASHBOARD_MIGRATIONS_DIR` to
|
||||
the checked-in `drizzle/` directory so startup migrations can run.
|
||||
|
||||
### Internal Container
|
||||
|
||||
The checked-in `Containerfile` builds the SvelteKit adapter output into a Bun
|
||||
runtime image. For the Dimension Lab internal host, run it behind Caddy on a
|
||||
loopback port and mount persistent state at `/data`:
|
||||
|
||||
```sh
|
||||
podman build -t localhost/dimensionlab-website:latest .
|
||||
podman run --rm \
|
||||
--publish 127.0.0.1:25341:3000 \
|
||||
--volume "$HOME/containers/dimensionlab-website/data:/data:Z" \
|
||||
--env-file "$HOME/containers/dimensionlab-website/dimensionlab-website.env" \
|
||||
localhost/dimensionlab-website:latest
|
||||
```
|
||||
|
||||
The env file must provide `AGENT_CONFIG_TOKEN`. Runtime defaults inside the
|
||||
image set `HOST=0.0.0.0`, `PORT=3000`,
|
||||
`DATABASE_URL=file:/data/dimensionlab.sqlite`, and
|
||||
`DASHBOARD_MIGRATIONS_DIR=/app/drizzle`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue