Files
nixfiles/docs/sites/colony/shill/containers/colony-psql.md
T
jackos1998andClaude Opus 5.5 288d68b954 colony-psql: Upgrade PostgreSQL to 18
Return the container to `mine` with PostgreSQL 18. The live cluster
was migrated from 14 with `pg_upgrade --link` before this config
first started. The new cluster was initialized with
`-E UTF8 --locale=en_US.UTF-8 --no-data-checksums` to match the old
one, and every B-tree index on a `character(n)` column was reindexed
afterwards because `amcheck` rejected their 14-built deduplication
flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:11:44 +00:00

1.7 KiB

colony-psql

The shared PostgreSQL instance for colony services. Rather than each service running its own database, the containers (and the git VM) connect here over the ctrs network.

Role

  • PostgreSQL 18 with TCP/IP enabled, reachable from the whole colony address space using md5 authentication. The firewall allows 5432.
  • Local peer auth maps postgres, root, netdata and dev to the postgres superuser via the ident map.
  • netdata with the Python PostgreSQL collector.
  • Consumers wait for the database to accept connections with the lib.my.systemdAwaitPostgres helper (e.g. atticd, mastodon-init-db, and middleman's nginx as a DNS bootstrap hack).

Network assignments

See the consolidated network assignments table (this box: colony-psql).

The assignment also has the alt name colony-psql (no -ctr suffix), which is what consumers use as the database hostname.

Consumers

  • object — hedgedoc (and atticd when enabled) over colony-psql:5432
  • toot — Mastodon's database (Mastodon currently disabled)
  • chatterbox — the mautrix bridges (WhatsApp, Messenger, Instagram) via Postgres URIs in their secret env files
  • git VM — Gitea

Notable config files