From fb334c7703189b23e72c6b6e7bc9c1bdae33e837 Mon Sep 17 00:00:00 2001 From: Per Magnus Petersen Date: Fri, 11 Sep 2026 16:03:56 +0200 Subject: [PATCH] Document Postgres on citadel, drop stale omarchy references The database moved to citadel (192.168.50.195); .env and the deployed container already point there, but env.example still handed out the old omarchy address. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01EWRh3vxBcqwDbuWv2dfQYF --- CLAUDE.md | 2 +- env.example | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bdcc326..9f904d5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -37,7 +37,7 @@ Docker runs alongside local dev on different ports and databases: - **Framework:** Kit (Integrant-based) - **Server:** Undertow - **Routing:** Reitit -- **Database:** PostgreSQL + conman + Migratus +- **Database:** PostgreSQL + conman + Migratus — the Postgres lives on **citadel** (`192.168.50.195:5432`); `btcprice` for local dev, `btcprod` for the deployed container - **Port:** 4100 (env: BTCDATA_PORT) - **CORS:** Configured via CORS_ORIGIN env var diff --git a/env.example b/env.example index 2ac7830..6027f85 100644 --- a/env.example +++ b/env.example @@ -20,10 +20,10 @@ STRIKE_ENABLED=false KRAKEN_ENABLED=false # --- Docker (docker compose up -d) --- -# Runs alongside local dev on its own port. `postgres` resolves to the Docker -# host via extra_hosts: host-gateway. +# Runs alongside local dev on its own port. Points at the Postgres on citadel +# (192.168.50.195) directly, so it works from any host that can reach that LAN. DOCKER_BTCDATA_PORT=4102 -DOCKER_JDBC_URL=jdbc:postgresql://postgres:5432/btcprod?user=postgres&password=changeme +DOCKER_JDBC_URL=jdbc:postgresql://192.168.50.195:5432/btcprod?user=postgres&password=changeme DOCKER_CORS_ORIGIN=http://localhost:4041 DOCKER_FRANKFURTER_URL=http://frankfurter:8080