From ee88e5f213334382cbea04402cab9bc29405412a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 16 Mar 2026 23:38:47 -0700 Subject: streamline dev setup and docker images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rewrite setup.sh: auto-installs Docker, downloads regtest snapshot, pulls images, starts all services. Idempotent, works on fresh Ubuntu/macOS. - Create coinos-base image (196MB) shared by all containers: bitcoin, elements, lightning, strfry, kvrocks, electrs, tigerbeetle, chopsticks. Total pull ~490MB, down from ~4.3GB. - Move all images to ghcr.io/coinos/* namespace. - Drop nutshell (mint/wallet), postgres, mon from default dev compose. - Comment out ark stack (optional), guard ark.ts against empty config. - Add missing sampledata: lightningc, strfry, kvrocks, valkey configs. - Strip strfry binary (145MB debug symbols removed). - Use single CLN version (v25.12.1) for all 3 lightning nodes. - Switch valkey to alpine variant (110MB → 41MB). - Update config.ts.sample with correct service URLs. - Regtest snapshot hosted on GitHub Releases (~2MB). Co-Authored-By: Claude Opus 4.6 (1M context) --- config.ts.sample | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'config.ts.sample') diff --git a/config.ts.sample b/config.ts.sample index b28c6b6b..fc461a63 100644 --- a/config.ts.sample +++ b/config.ts.sample @@ -10,16 +10,11 @@ export default { }, archive: "redis://arc", db: "redis://db", - nostr: "ws://nostr:8080", + nostr: "ws://sf:7777", + publicRelay: "ws://localhost:7777", + cache: "wss://cache2.primal.net/v1", relays: [ - "ws://nostr:8080", - "wss://relay.primal.net", - "wss://relay.damus.io", - "wss://nostr-pub.wellorder.net", - "wss://brb.io", - "wss://nostr.v0l.io", - "wss://relay.nostr.bg", - "wss://nostr.orangepill.dev" + "ws://sf:7777", ], jwt: "00d0ab4f7738a83feb37f661526512063c41e49278b7c32cba87314269a5788b", bitcoin: { @@ -42,22 +37,33 @@ export default { password: "123", network: "regtest", port: 7040, - btc: "5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225" + btc: "5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225", }, lightning: "/home/bun/app/data/lightning/regtest/lightning-rpc", lightningb: "/home/bun/app/data/lightningb/regtest/lightning-rpc", - fee: 0.001, - adminpass: "pwa", - txWebhookSecret: process.env.TX_WEBHOOK_SECRET || "pwa", + fee: { + bitcoin: 0.004, + liquid: 0.001, + lightning: 0.001, + }, + admin: "admin", + adminpass: "pw", + testSecret: process.env.E2E_TEST_SECRET || "local-e2e-secret", + txWebhookSecret: process.env.TX_WEBHOOK_SECRET || "pw", support: "support@coinos.io", nostrKey: "nsec1msk3dqy2pzqy2murmm5s5gejfgkjkm2zesnh266gud2wcvhcunzqlu0h90", nostrKey2: "nsec17ugnsk0qrnakf7xaxzckya4xvx58q063k6q4vq2l577k4uyv9r0qmdcgm5", mintUrl: "http://mint:3338", + vapid: { + pk: "", + sk: "", + }, square: { environment: SquareEnvironment.Sandbox, - appId: "sandbox-sq0adb-9QbyDZeHTPc_RhFSEr_SaQ", + appId: "", url: "https://connect.squareupsandbox.com/", scopes: ["MERCHANT_PROFILE_READ", "ORDERS_READ", "PAYMENTS_READ"], }, tigerbeetle: { cluster_id: 0n, replica_addresses: ["tb:3000"] }, + hostname: "localhost", }; -- cgit v1.2.3