NordStern Docs
Internal Engineering

Running the Stack

Operational reference for starting, managing, and troubleshooting the Docker Compose services.

This section details how to run, manage, and debug the core platform services locally.


Service Mapping & Ports

All core services run inside a shared Docker network bridge named nordstern-net. The table below lists the public and internal ports:

Service NameContainer NameHost PortInternal PortHealth Check Endpoint
dbnordstern-platform-db54325432Postgres ping (pg_isready)
secretslocalstack45664566LocalStack status /health
traefiktraefik80 (Web)
8090 (Dashboard)
80 / 8080None
platform-apinordstern-platform-api40004000HTTP GET /health
control-planenordstern-control-plane30023002HTTP GET /health
aggregatornordstern-aggregator30053005HTTP GET /health
founder-consolenordstern-founder-console40013000HTTP GET /
admin-consolenordstern-admin-console40023000HTTP GET /

Core Operational Commands

Start the Stack

Always specify the generated env base file when starting services:

docker compose --env-file anchor-service/.env.base -f docker-compose.platform.yml up -d

Inspect Container Logs

To debug a crashing service (e.g. platform-api):

docker compose -f docker-compose.platform.yml logs -f platform-api

Stop the Stack

Tear down the containers without deleting databases:

docker compose -f docker-compose.platform.yml down

Clean Teardown

Tear down containers, networks, and remove the Postgres volume:

docker compose -f docker-compose.platform.yml down -v

Troubleshooting Common Errors

Network Label Conflict

  • Error: network nordstern-net declared as external, but could not be found or incorrect label.
  • Cause: The docker network was created with legacy configuration labels.
  • Fix: Delete the network manually and restart the stack:
    docker network rm nordstern-net

Database Port Conflicts

  • Error: bind: address already in use on port 5432.
  • Cause: A local Postgres server is running on the host system.
  • Fix: Stop your host Postgres server or other running docker instances:
    # On macOS
    brew services stop postgresql

Stalled Provisioning Job

  • Error: Onboard redeem spinner hangs, stage stays stuck in "Funding accounts".
  • Cause: The Stellar Testnet is reset quarterly, or Friendbot is temporarily down.
  • Fix: Check network connection, retry the job via POST /api/v1/anchor-invitations/status/:jobId/retry.

On this page