This commit is contained in:
Michael committed 2026-08-06 19:04:06 +12:00
1 parent acb5070622
commit 07d2595678
3 files changed
+78 -33

No files matched your search

+5 -1
View File
@@ -1,4 +1,8 @@
# Copy to deploy/.env and fill in — docker compose loads this automatically.
# Reference list of every env var the app reads — see docker-compose.yml for
# how they're actually wired in (literal values right in that file, matching
# this host's convention for other services, not a separate .env). Copy
# values from here into the `environment:` block there, or into a `.env`
# yourself if you'd rather use `${VAR}` substitution in the compose file.
# --- Database ---
# "postgres" (production, default) or "sqlite" (local dev/testing, no
+46 -18
View File
@@ -1,26 +1,54 @@
# Matches the house style used for other services on this host (gittea,
# etc.): one folder per service, config as literal env values right in this
# file (no separate .env), bind-mounted ./data, published on a 127.0.0.1
# port for the host's own Caddy to reverse_proxy to.
#
# This example is wired for DB_DRIVER=sqlite + STORAGE_DRIVER=local — no
# Postgres or S3 needed, everything lives under ./data. Fine for production
# on a single-server/personal-use deployment like this one; swap to
# postgres/s3 by changing the env values below (see deploy/.env.example for
# the full var list either way).
services:
app:
vlog:
build:
context: ..
dockerfile: backend/Dockerfile
container_name: vlog
restart: unless-stopped
# Only needed if your OIDC provider runs on the host itself (or another
# compose stack not on this network) rather than a public domain — same
# reason gittea reaches Postgres via host.docker.internal. Safe to leave
# in even if unused.
extra_hosts:
- "host.docker.internal:host-gateway"
# Pick any free host port — this is what your Caddy config points at.
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}
- "127.0.0.1:4012:8080"
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- DB_DRIVER=sqlite
- DATABASE_URL=/data/vlog.db
- PORT=8080
- STORAGE_DRIVER=local
- LOCAL_STORAGE_PATH=/data/uploads
# Point at your existing OIDC provider (Authentik/Keycloak/Zitadel/etc).
# Register OIDC_REDIRECT_URL with it as this app'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
# Whatever your Caddy config serves this app as — controls whether
# session cookies are marked Secure (only over https://).
- PUBLIC_BASE_URL=https://garage.example.com
# openssl rand -base64 32
- JWT_SIGNING_SECRET=changeme