main
|
Last change
on this file since 475eeda was 5a2cb69, checked in by roboburr <roboburr@…>, 3 months ago |
|
feat(self-host): Docker-image + compose + quickstart-README
Dockerfile (multi-stage node:20-bookworm → -slim): native better-sqlite3 +
gebundelde ffmpeg (ffmpeg-static) uit builder, cwebp uit Debian 'webp', draait
als non-root, healthcheck. docker-compose met persistent storage-volume.
README: zelf-host-quickstart (Docker + Node + Caddy-HTTPS + eerste-keer-setup).
Op de VPS gebouwd + getest: build OK, GET / 200, DB auto-migreert, ffmpeg+cwebp
aanwezig, healthcheck healthy. Distributie (publiceren) wacht op GitHub-stap.
Co-Authored-By: Claude <noreply@…>
|
-
Property mode
set to
100644
|
|
File size:
888 bytes
|
| Rev | Line | |
|---|
| [5a2cb69] | 1 | # Klonkt — zelf-host met Docker Compose.
|
|---|
| 2 | #
|
|---|
| 3 | # 1. cp .env.example .env en vul SESSION_SECRET + PUBLIC_BASE_URL in
|
|---|
| 4 | # 2. docker compose up -d
|
|---|
| 5 | # 3. open je site en maak via /auth/register je beheerdersaccount aan
|
|---|
| 6 | #
|
|---|
| 7 | # Standaard luistert de app op poort 3000. Zet er een reverse-proxy (Caddy/
|
|---|
| 8 | # nginx) vóór voor HTTPS op je domein — zie README.
|
|---|
| 9 | services:
|
|---|
| 10 | klonkt:
|
|---|
| 11 | build: .
|
|---|
| 12 | image: klonkt:latest
|
|---|
| 13 | restart: unless-stopped
|
|---|
| 14 | env_file: .env
|
|---|
| 15 | environment:
|
|---|
| 16 | # In de container draait 'ie altijd op 3000 en in productie-modus,
|
|---|
| 17 | # ongeacht wat er in .env staat.
|
|---|
| 18 | NODE_ENV: production
|
|---|
| 19 | PORT: "3000"
|
|---|
| 20 | ports:
|
|---|
| 21 | # host:container — wijzig de host-poort (links) als 3000 al bezet is.
|
|---|
| 22 | - "3000:3000"
|
|---|
| 23 | volumes:
|
|---|
| 24 | # Alle data (database, geüploade media + audio) blijft hier bewaard.
|
|---|
| 25 | - klonkt-data:/app/storage
|
|---|
| 26 |
|
|---|
| 27 | volumes:
|
|---|
| 28 | klonkt-data:
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.