Files
explorer-v1/compose.zootest.yml
zeekay 8dd9cb2374 fix: purge blockscout images, enable stats service with Traefik routing
- All compose files: ghcr.io/blockscout/* → ghcr.io/luxfi/* (explorer, explore, explorer-stats, explorer-visualizer, explorer-sig-provider)
- compose.luxnet.yml: add Traefik labels for stats + visualizer routing at api-explore.lux.network/api/stats and /api/visualize
- common-stats.env: enable CREATE_DATABASE, RUN_MIGRATIONS, FORCE_UPDATE_ON_START so stats service auto-initializes
2026-03-16 09:44:40 -07:00

93 lines
2.9 KiB
YAML

version: '3.9'
networks:
hanzo-network:
external: true
services:
backend:
image: ghcr.io/luxfi/explorer:${DOCKER_TAG:-latest}
container_name: 'zootest-backend'
restart: always
stop_grace_period: 5m
command: "bin/blockscout start"
networks:
- hanzo-network
ports:
- "4011:4000"
extra_hosts:
- "k8s-host:192.168.1.99"
- "host-postgres:192.168.1.99"
- "host-redis:192.168.1.99"
env_file:
- ./docker-compose/envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_HTTP_URL: http://k8s-host:9650/ext/bc/2usKC5aApgWQWwanB4LL6QPoqxR1bWWjPCtemBYbZvxkNfcnbj/rpc
ETHEREUM_JSONRPC_TRACE_URL: http://k8s-host:9650/ext/bc/2usKC5aApgWQWwanB4LL6QPoqxR1bWWjPCtemBYbZvxkNfcnbj/rpc
ETHEREUM_JSONRPC_WS_URL: ws://k8s-host:9650/ext/bc/2usKC5aApgWQWwanB4LL6QPoqxR1bWWjPCtemBYbZvxkNfcnbj/ws
CHAIN_ID: '200201'
DATABASE_URL: postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@host-postgres:5432/explorer_zootest?sslmode=disable
DISABLE_MIGRATE: 'true'
frontend:
image: ghcr.io/luxfi/explore:${FRONTEND_TAG:-latest}
container_name: 'zootest-frontend'
restart: always
networks:
- hanzo-network
depends_on:
- backend
ports:
- "3011:3000"
env_file:
- ./docker-compose/envs/common-frontend.env
environment:
NEXT_PUBLIC_API_HOST: localhost:4011
NEXT_PUBLIC_NETWORK_NAME: "ZOO Testnet"
NEXT_PUBLIC_NETWORK_ID: 200201
NEXT_PUBLIC_NETWORK_SHORT_NAME: ZOO
NEXT_PUBLIC_NETWORK_CURRENCY_NAME: ZOO
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: ZOO
NEXT_PUBLIC_IS_TESTNET: 'true'
visualizer:
image: ghcr.io/luxfi/explorer-visualizer:${VISUALIZER_VERSION:-latest}
container_name: 'zootest-visualizer'
restart: always
networks:
- hanzo-network
env_file:
- ./docker-compose/envs/common-visualizer.env
ports:
- "8250:8050"
sig-provider:
image: ghcr.io/luxfi/explorer-sig-provider:${SIG_PROVIDER_VERSION:-latest}
container_name: 'zootest-sig-provider'
restart: always
networks:
- hanzo-network
ports:
- "8251:8050"
stats:
image: ghcr.io/luxfi/explorer-stats:${STATS_VERSION:-latest}
container_name: 'zootest-stats'
restart: always
networks:
- hanzo-network
depends_on:
- backend
extra_hosts:
- "k8s-host:192.168.1.99"
- "host-postgres:192.168.1.99"
- "host-redis:192.168.1.99"
env_file:
- ./docker-compose/envs/common-stats.env
environment:
STATS__DB_URL: postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@host-postgres:5432/stats_zootest?sslmode=disable
STATS__BLOCKSCOUT_DB_URL: postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@host-postgres:5432/explorer_zootest?sslmode=disable
STATS__CREATE_DATABASE: 'false'
STATS__RUN_MIGRATIONS: 'false'
ports:
- "8253:8050"