This commit is contained in:
Michael committed 2026-08-06 19:00:08 +12:00
1 parent f7037a6780
commit acb5070622
44 files changed
+5047

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# Copy to deploy/.env and fill in — docker compose loads this automatically.
# --- Database ---
# "postgres" (production, default) or "sqlite" (local dev/testing, no
# external DB needed). When sqlite, DATABASE_URL is a file path, not a DSN —
# e.g. ./data/vlog.db (the compose file mounts ./data for you).
DB_DRIVER=postgres
DATABASE_URL=postgres://user:password@host:5432/vlog?sslmode=require
# --- OIDC (Keycloak/Authentik/Zitadel/etc) ---
# Register OIDC_REDIRECT_URL with your provider as this client's callback URL.
OIDC_ISSUER_URL=https://auth.example.com/realms/your-realm
OIDC_CLIENT_ID=vlog
OIDC_CLIENT_SECRET=changeme
OIDC_REDIRECT_URL=https://garage.example.com/api/auth/callback
# This app's own public URL — whatever your existing Caddy/reverse proxy
# serves it as. Determines whether session cookies are marked Secure (only
# over https://).
PUBLIC_BASE_URL=https://garage.example.com
# Random long string used to sign session JWTs. Generate with:
# openssl rand -base64 32
JWT_SIGNING_SECRET=changeme
# --- File storage ---
# "s3" (production, default) or "local" (writes to disk — for testing
# without a real S3 bucket). AWS_* vars below are ignored when local.
STORAGE_DRIVER=s3
LOCAL_STORAGE_PATH=./data/uploads
AWS_REGION=ap-southeast-2
AWS_ACCESS_KEY_ID=changeme
AWS_SECRET_ACCESS_KEY=changeme
S3_BUCKET_NAME=vlog-uploads
# Port the app listens on inside the container / is published on the host
# for your existing Caddy to reverse_proxy to.
PORT=8080
+26
View File
@@ -0,0 +1,26 @@
services:
app:
build:
context: ..
dockerfile: backend/Dockerfile
restart: unless-stopped
ports:
- "${PORT:-8080}:8080"
environment:
DB_DRIVER: ${DB_DRIVER:-postgres}
DATABASE_URL: ${DATABASE_URL}
PORT: "8080"
OIDC_ISSUER_URL: ${OIDC_ISSUER_URL}
OIDC_CLIENT_ID: ${OIDC_CLIENT_ID}
OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET}
OIDC_REDIRECT_URL: ${OIDC_REDIRECT_URL}
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL}
JWT_SIGNING_SECRET: ${JWT_SIGNING_SECRET}
STORAGE_DRIVER: ${STORAGE_DRIVER:-s3}
LOCAL_STORAGE_PATH: ${LOCAL_STORAGE_PATH:-./data/uploads}
AWS_REGION: ${AWS_REGION}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
S3_BUCKET_NAME: ${S3_BUCKET_NAME}
volumes:
- ./data:/data