mirror of
https://github.com/luxfi/explorer.git
synced 2026-09-24 00:25:12 +00:00
a2b779c20cbdce6ac8edd2ebf2a5e89e307f588f
Three repos, three images: luxfi/indexer → ghcr.io/luxfi/indexer (Go backend, API + indexing) luxfi/explore → ghcr.io/luxfi/explore (Next.js frontend) luxfi/explorer → ghcr.io/luxfi/explorer (this: combined single image) Dockerfile pulls both repos at build time, embeds the Next.js static export into the Go binary via go:embed, produces a single container.
Explorer
Combined block explorer image: Go backend (luxfi/indexer) + Next.js frontend (luxfi/explore) in a single container.
ghcr.io/luxfi/indexer ← Go backend (API + chain indexing)
ghcr.io/luxfi/explore ← Next.js frontend
ghcr.io/luxfi/explorer ← This: combined single image
Run
docker run -p 8090:8090 \
-e RPC_ENDPOINT=http://node:9650/ext/bc/C/rpc \
-e CHAIN_NAME="My Chain" \
-e COIN_SYMBOL=ETH \
-v explorer-data:/data \
ghcr.io/luxfi/explorer
Single port, single image. Backend API at /v1/explorer/*, frontend at /.
Build
docker build -t ghcr.io/luxfi/explorer .
Pulls luxfi/indexer and luxfi/explore from GitHub at build time. Override branches:
docker build \
--build-arg INDEXER_REF=v1.2.0 \
--build-arg EXPLORE_REF=v2.7.2 \
-t ghcr.io/luxfi/explorer .
White-Label
docker run -p 8090:8090 \
-e RPC_ENDPOINT=http://node:8545 \
-e CHAIN_NAME="Awesome Chain" \
-e COIN_SYMBOL=AWE \
-e CHAIN_ID=12345 \
ghcr.io/luxfi/explorer
Multi-Chain
Mount a chains.yaml:
docker run -p 8090:8090 \
-v ./chains.yaml:/etc/explorer/chains.yaml \
-v explorer-data:/data \
ghcr.io/luxfi/explorer --config=/etc/explorer/chains.yaml
Related
luxfi/indexer— Go backend, 1528 tests, SQLite, E2E PQ encrypted backupsluxfi/explore— Next.js frontend, Geist font, white-labelluxfi/explorer-v1— Legacy Elixir stack (archived)
Languages
Go
97.3%
Dockerfile
1.7%
Shell
0.8%
HTML
0.2%