source: Klonkt/docker-compose.yml@ 09ee2bd

main
Last change on this file since 09ee2bd was 09ee2bd, checked in by Robin Genis <roboburr@…>, 3 months ago

feat: auto-generate SESSION_SECRET if not set (zero-config Docker/manual)

If SESSION_SECRET is missing, generate a strong one on first boot and persist it
to <dataDir>/.session-secret (stable across restarts/updates). Env var still wins.
PUBLIC_BASE_URL already falls back to the request host. So Docker (B) and manual
(C) installs now run with no required .env editing. Docs + .env.example updated;
docker-compose comment translated to English.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 1.0 KB
Line 
1# Klonkt — self-host with Docker Compose.
2#
3# 1. cp .env.example .env (works as-is: SESSION_SECRET is auto-generated;
4# optionally set PUBLIC_BASE_URL to your domain so
5# email/login links are correct)
6# 2. docker compose up -d
7# 3. open your site and create your admin account at /auth/register
8#
9# The app listens on port 3000. Put a reverse proxy (Caddy/nginx) in front for
10# HTTPS on your domain — see README.
11services:
12 klonkt:
13 build: .
14 image: klonkt:latest
15 restart: unless-stopped
16 env_file: .env
17 environment:
18 # In de container draait 'ie altijd op 3000 en in productie-modus,
19 # ongeacht wat er in .env staat.
20 NODE_ENV: production
21 PORT: "3000"
22 ports:
23 # host:container — wijzig de host-poort (links) als 3000 al bezet is.
24 - "3000:3000"
25 volumes:
26 # Alle data (database, geüploade media + audio) blijft hier bewaard.
27 - klonkt-data:/app/storage
28
29volumes:
30 klonkt-data:
Note: See TracBrowser for help on using the repository browser.