The catalog in server/containers had drifted from the VPS. Eleven compose
files and twelve units no longer matched what runs, and two running
services, Gbrown_Agent and BillTracker, were missing. server/vps is now a
copy of the live files, and panama-server reads from it.
server/home holds the home server's services in the same shape. They still
run under Docker, so the podman units there are drafts for a later move, and
nothing installs from that tree. PostHog, Sentry and Plausible are checkouts
of upstream repositories. Only their local files are kept, next to an
UPSTREAM file naming the repository and the exact commit.
Every secret in both trees is a ${VAR} reference named in .env.example, or
CHANGE_ME in files that are not compose files. The live servers still hold
some of those values inline, so a live file can differ from its copy on
those lines alone. Existing .env.example files keep their comments, with new
keys appended at the end.
The ignore rules and the secrets contract now cover both trees, plus the
volume/ and volumes/ directories the home server uses.
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
networks:
|
|
nginx-bridge:
|
|
external: true
|
|
services:
|
|
gitea:
|
|
image: docker.io/gitea/gitea:latest
|
|
container_name: gitea
|
|
hostname: gitea
|
|
domainname: git.gbrown.org
|
|
networks:
|
|
- nginx-bridge
|
|
ports:
|
|
- '2222:22'
|
|
environment:
|
|
- TZ=America/New_York
|
|
- USER_UID=1001
|
|
- USER_GID=1003
|
|
# ── Mailer ────────────────────────────────────────────────────────────────
|
|
# The image's entrypoint runs `environment-to-ini`, so GITEA__section__KEY
|
|
# vars are written into /data/gitea/conf/app.ini on every start. This block
|
|
# is therefore the source of truth -- hand-editing app.ini gets overwritten
|
|
# on the next restart. It also means PASSWD lands in app.ini in plaintext
|
|
# inside the volume; that is how Gitea works, not a misconfiguration.
|
|
#
|
|
# PROTOCOL=smtp+starttls matches port 587. The relay refuses AUTH until
|
|
# STARTTLS succeeds, so plain `smtp` would fail with 538.
|
|
- GITEA__mailer__ENABLED=true
|
|
- GITEA__mailer__PROTOCOL=smtp+starttls
|
|
- GITEA__mailer__SMTP_ADDR=smtp.usesend.gbrown.org
|
|
- GITEA__mailer__SMTP_PORT=587
|
|
- GITEA__mailer__USER=usesend
|
|
- GITEA__mailer__PASSWD=${USESEND_API_KEY:?set USESEND_API_KEY in Gitea/.env}
|
|
- GITEA__mailer__FROM=Gitea <[email protected]>
|
|
labels:
|
|
com.centurylinklabs.watchtower.enable: 'true'
|
|
volumes:
|
|
- ./volume:/data:Z
|
|
- /home/gib/Media/gitea-packages:/data/gitea/packages:Z
|
|
- ./ssh:/data/git/.ssh:Z
|
|
tty: true
|
|
restart: unless-stopped
|