# Standalone Nosterm client deployment. # # Serves the static SvelteKit SPA via Caddy on port 8080. This directory deploys # ONLY the client — point it at a relay of your choice with NOSTERM_DEFAULT_RELAYS # (runtime, see .env.example). To also run a home relay, use the nosterm-relay # repo (or set RELAY_UPSTREAM so Caddy's /relay proxy reaches it). # # cp .env.example .env # then edit # docker compose up -d --build services: nosterm: build: context: . args: # Non-relay tunables are still baked in at build time. Relays are set at # runtime via NOSTERM_DEFAULT_RELAYS below (no rebuild to change them). PUBLIC_DEFAULT_THEME: ${PUBLIC_DEFAULT_THEME:-nord} PUBLIC_MAX_TERMINAL_ENTRIES: ${PUBLIC_MAX_TERMINAL_ENTRIES:-1000} PUBLIC_MAX_MESSAGE_LENGTH: ${PUBLIC_MAX_MESSAGE_LENGTH:-2000} PUBLIC_MAX_CACHED_MESSAGES_PER_ROOM: ${PUBLIC_MAX_CACHED_MESSAGES_PER_ROOM:-500} image: nosterm:latest environment: # Relay(s) the client preloads, written to /config.json on startup. For a # same-origin home relay use "ws://localhost:8080/relay" (proxied by Caddy) # and set RELAY_UPSTREAM to its address. Otherwise point at an external relay. NOSTERM_DEFAULT_RELAYS: ${NOSTERM_DEFAULT_RELAYS:-} # Upstream for Caddy's optional /relay proxy. Only used if the client # reaches the relay at ws:///relay. Harmless if unused. RELAY_UPSTREAM: ${RELAY_UPSTREAM:-relay:3334} ports: - '8080:80' restart: unless-stopped