Files
nosterm-client/docker-compose.yml
T
Robert Goodall dd388061d1
ci / build (pull_request) Successful in 1m1s
ci / image (pull_request) Skipped
Auto-join #nosterm on startup; add mission/roadmap; chat-window banner
2026-07-25 08:17:20 -04:00

35 lines
1.6 KiB
YAML

# 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_DEFAULT_CHANNEL: ${PUBLIC_DEFAULT_CHANNEL:-nosterm}
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://<host>/relay. Harmless if unused.
RELAY_UPSTREAM: ${RELAY_UPSTREAM:-relay:3334}
ports:
- '8080:80'
restart: unless-stopped