Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b44356782 | |||
| a035162a6b | |||
| a19073d1f0 | |||
| 10abe4a31f | |||
| af6d70fe6e |
@@ -71,7 +71,9 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_NAME }}:${{ env.VERSION }}
|
||||
tags: |
|
||||
${{ env.IMAGE_NAME }}:${{ env.VERSION }}
|
||||
${{ env.IMAGE_NAME }}:latest
|
||||
labels: |
|
||||
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
|
||||
@@ -1,7 +1,23 @@
|
||||
# excali
|
||||
# excali-box
|
||||
|
||||
Private self-hosted Excalidraw with Bun and SQLite.
|
||||
|
||||
This is bare wrapper around the excalidraw packages that adds autosave and disk-persistence.
|
||||
No auth to keep things simple - you either run in a private network or put it behind a Caddy auth or similar solutions.
|
||||
|
||||
> GPT 5.5 generated
|
||||
|
||||
## Pull from GHCR and run
|
||||
|
||||
Images are published to:
|
||||
|
||||
`ghcr.io/ruinivist/excalidraw-box:<version>`
|
||||
|
||||
```bash
|
||||
docker pull ghcr.io/ruinivist/excalidraw-box:latest
|
||||
docker run --rm -p 127.0.0.1:3000:3000 -v "$PWD/excali-box-data:/data" ghcr.io/ruinivist/excalidraw-box:latest
|
||||
```
|
||||
|
||||
## Run locally
|
||||
|
||||
```bash
|
||||
@@ -22,14 +38,7 @@ bun run typecheck
|
||||
|
||||
```bash
|
||||
docker build -t excali .
|
||||
docker run --rm -p 3000:3000 -v "$PWD/excali-box-data:/data" excali
|
||||
docker run --rm -p 127.0.0.1:3000:3000 -v "$PWD/excali-box-data:/data" excali
|
||||
```
|
||||
|
||||
This will make the data persistent in the `excali-box-data` folder in the current directory, the site will be available at `localhost:3000`.
|
||||
|
||||
> Note that this command will bind to ALL interfaces. If you use a rev
|
||||
> proxy, you may want to bind to locahost instead, you can do that by setting the `HOST` environment variable to `localhost`:
|
||||
|
||||
```bash
|
||||
docker run --rm -p 3000:3000 -v "$PWD/excali-box-data:/data" -e HOST=localhost excali
|
||||
```
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ export function createServer() {
|
||||
|
||||
return {
|
||||
port: Number(process.env.PORT ?? "3000"),
|
||||
hostname: process.env.HOST ?? "0.0.0.0",
|
||||
hostname: process.env.HOST ?? "localhost",
|
||||
routes: {
|
||||
"/": (request: Request) => {
|
||||
const drawing = drawingStore.ensureInitialDrawing();
|
||||
|
||||
Reference in New Issue
Block a user