Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
README.md
adding a service #
one directory per service, services/<name>/. nothing outside it needs editing, the
scripts discover what is there. every file is optional except run and process.yaml.
services/redis/ is a small example.
run: exports its env and execs${FOO_CMD:-$default}. runs what is already built, builds go insetupprocess.yaml: process-compose entry with a readiness probe anddepends_on, wrapped inofflineunless it needs the internet while it runsports.env: loopback ports,TNGL_FOO_PORT=${TNGL_FOO_PORT:-52590}. pick one nobody has withgrep -rh _PORT localinfra/pc/ports.env localinfra/pc/services/*/ports.envcommands.env: defaults forFOO_BINandFOO_CMDCaddyfile: vhosts, upstream127.0.0.1:{$TNGL_FOO_PORT}setup: runs before the stack starts, may fetch and builddoctor: checks required binaries withneed progprofile: profile names, one per line. the service only runs when one is on, without the file it always runspackages: nixpkgs attributesnix run .#localinfrashould bring
rules #
- loopback only: bind
127.0.0.1. - call sibling services through
*.tngl.boltless.devbecause caddy terminates tls for all of them. - trust
$TNGL_CERTS/root.crtfor outgoing https calls. - one service per directory, matching the compose service name.