Machine:
- hoc-compass running on Exoscale Debian bookwork 12 Standard Large = 8GB RAM / 4 CPUs Disk 50GB Block storage 100GB mounted at /data
- Transactor/nginx/etc, see cloud_init.sh
- A / AAAA records on DNSimple for compass.heartofclojure.eu 159.100.242.109 2a04:c43:e00:5d3b:4f6:2cff:fe00:612
Database
- We use a exoscale hosted postgresql instance as a backend for datomic
- Transactor runs on the same box
ssh accesss:
- Make sure your membership of the heartofclojure group is public on github https://github.com/orgs/heartofclojure/people
- Wait up to ten minutes
ssh root@compass.heartofclojure.eu
systemctl status txor
systemctl status compass
journalctl -u compass -f
ssh compass@compass.heartofclojure.eu
vim ~/config.edn
Deploys
- we have a bare repo on the server
- in there there's a pre-receive hook (ops/pre-receive.bb)
- pushed to this repo will trigger a deploy
- the github actions does a push
Backups:
curl ifconfig.me -> whitelist your IP in exoscale exo dbaas -z ch-gva-2 show hoc-compass-db --uri -> find credentials/hostname
curl https://datomic-pro-downloads.s3.amazonaws.com/1.0.7622/datomic-pro-1.0.7622.zip -O unzip datomic-pro-1.0.7622.zip ./datomic-pro-1.0.7622/bin/datomic -Xmx4g -Xms4g backup-db "datomic:sql://compass?jdbc:postgresql://hostname:port/datomic?sslmode=require&user=...&password=..." file:/home/arne/Gaiwan/compass/prod-datomic-backup