- docker-compose.yml: Forgejo service on hiy-net, configured via env vars - postgres-init/01-forgejo.sql: creates forgejo user + database on first Postgres init - .env.example: document FORGEJO_DB_PASSWORD and FORGEJO_DOMAIN Routing: add FORGEJO_DOMAIN as an app in HIY pointing to forgejo:3000, or add a Caddyfile block manually. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
5 lines
280 B
SQL
5 lines
280 B
SQL
-- Create a dedicated database and user for Forgejo.
|
|
-- This script runs once when the Postgres container is first initialised.
|
|
-- If the container already has data it is skipped automatically.
|
|
CREATE USER forgejo WITH PASSWORD 'CHANGE_ME';
|
|
CREATE DATABASE forgejo OWNER forgejo;
|