Skip to main content

CT320 — Shared Postgres

CT320 hosts a shared PostgreSQL 16 instance for Helsinki2 services that do not use their own local database container.

Container

PropertyValue
CTID320
Hostnamepg-ct
IP192.168.100.70
Postgres16
Port5432

Databases

DatabaseOwnerConsumer
twenty_lifehousetwenty_lifehouse_appLifehouse Twenty CRM
matomomatomoMatomo Analytics

Isolation Rule

EchoHuman Twenty CRM does NOT use CT320. It uses its own local echohuman-twenty-db-1 Postgres container on VM700.

Connecting

# From Proxmox host or any internal node
psql -h 192.168.100.70 -U <user> -d <database>

# Inside CT320
pct exec 320 -- psql -U postgres

Adding a Database

pct exec 320 -- psql -U postgres << 'SQL'
CREATE USER newapp WITH PASSWORD 'secret';
CREATE DATABASE newapp OWNER newapp;
GRANT ALL PRIVILEGES ON DATABASE newapp TO newapp;
SQL

Backup

pct exec 320 -- pg_dumpall -U postgres > /tmp/pg_backup_$(date +%Y%m%d).sql