Lux Docs

Docker

Building and running Docker images

Explorer Image

cd explorer
docker build -t ghcr.io/luxfi/explorer:latest \
  --build-arg VERSION=$(git describe --tags) \
  -f Dockerfile .

Single-stage build: Go compilation -> Alpine runtime. No Elixir, no Redis, no PostgreSQL.

Frontend Image

cd explore
docker build -t ghcr.io/luxfi/explore:latest \
  --build-arg GIT_COMMIT_SHA=$(git rev-parse HEAD) \
  -f Dockerfile .

Three-stage build: deps -> builder -> runner (Node.js Alpine).

Docker Compose

cd explorer
docker compose up -d

Services:

  • explorer -- Go backend (port 4000)
  • frontend -- Next.js (port 3000)

No Redis or PostgreSQL containers needed. SQLite is embedded.

Production Compose

docker compose -f compose.prod.yml up -d

Uses pre-built images from GHCR and production environment variables.

On this page