Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemini 3g blockscout #11

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions docker-compose/docker-compose-no-build-erigon.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand All @@ -20,13 +20,25 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'erigon'
ETHEREUM_JSONRPC_VARIANT: "erigon"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand Down
23 changes: 19 additions & 4 deletions docker-compose/docker-compose-no-build-external-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,23 @@ services:
- db
- smart-contract-verifier
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: ghcr.io/subspace/blockscout-backend@sha256:5ab061750801c713064b510068c30edd6d5854068a3b093b658279e7424f7db4
build:
context: ..
dockerfile: ./docker/Dockerfile
args:
CACHE_EXCHANGE_RATES_PERIOD: ""
API_V1_READ_METHODS_DISABLED: "false"
DISABLE_WEBAPP: "false"
API_V1_WRITE_METHODS_DISABLED: "false"
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED: ""
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL: ""
ADMIN_PANEL_ENABLED: ""
RELEASE_VERSION: 5.2.2
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "blockscout"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
Expand All @@ -34,7 +48,8 @@ services:
environment:
ETHEREUM_JSONRPC_TRACE_URL: https://nova.gemini-3g.subspace.network
ETHEREUM_JSONRPC_VARIANT: "ganache"
ETHEREUM_JSONRPC_HTTP_URL: https://nova.gemini-3g.subspace.network
ETHEREUM_JSONRPC_HTTP_URL: https://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_TRACE_URL: https://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_WS_URL: wss://nova.gemini-3g.subspace.network/ws
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: "true"
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
Expand Down
30 changes: 21 additions & 9 deletions docker-compose/docker-compose-no-build-ganache.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: '3.9'
version: "3.9"


services:
redis_db:
Expand All @@ -20,17 +21,28 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'ganache'
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: 'true'
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true'
CHAIN_ID: '1337'
ETHEREUM_JSONRPC_VARIANT: "ganache"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: "true"
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
CHAIN_ID: "1337"
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
25 changes: 19 additions & 6 deletions docker-compose/docker-compose-no-build-geth-clique-consensus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: '3.9'
version: "3.9"


services:
redis_db:
Expand All @@ -20,14 +21,26 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
BLOCK_TRANSFORMER: 'clique'
ETHEREUM_JSONRPC_VARIANT: "geth"
BLOCK_TRANSFORMER: "clique"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
22 changes: 17 additions & 5 deletions docker-compose/docker-compose-no-build-geth.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand All @@ -20,13 +20,25 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_VARIANT: "geth"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
25 changes: 18 additions & 7 deletions docker-compose/docker-compose-no-build-hardhat-network.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand All @@ -20,15 +20,26 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true'
ETHEREUM_JSONRPC_VARIANT: "geth"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
22 changes: 17 additions & 5 deletions docker-compose/docker-compose-no-build-nethermind.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand All @@ -20,13 +20,25 @@ services:
depends_on:
- db
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'nethermind'
ETHEREUM_JSONRPC_VARIANT: "nethermind"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
21 changes: 16 additions & 5 deletions docker-compose/docker-compose-no-build-no-db-container.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand All @@ -9,11 +9,22 @@ services:
backend:
depends_on:
- redis_db
extends:
file: ./services/docker-compose-backend.yml
service: backend
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: "backend"
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_VARIANT: "geth"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:5432/blockscout?ssl=false
volumes:
- ./logs/:/app/logs/

visualizer:
extends:
Expand Down
18 changes: 9 additions & 9 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
redis_db:
Expand Down Expand Up @@ -37,20 +37,20 @@ services:
RELEASE_VERSION: 5.2.3
restart: always
stop_grace_period: 5m
container_name: 'backend'
container_name: "backend"
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- 'host.docker.internal:host-gateway'
- "host.docker.internal:host-gateway"
env_file:
- ./envs/common-blockscout.env
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
CHAIN_ID: '1337'
ETHEREUM_JSONRPC_HTTP_URL: https://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_TRACE_URL: https://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_WS_URL: wss://nova.gemini-3g.subspace.network/ws
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
CHAIN_ID: "1002"
volumes:
- ./logs/:/app/logs/

Expand Down
6 changes: 3 additions & 3 deletions docker-compose/envs/common-blockscout.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# DOCKER_TAG=
ETHEREUM_JSONRPC_VARIANT=ganache
ETHEREUM_JSONRPC_HTTP_URL=https://nova.gemini-3g.subspace.network
ETHEREUM_JSONRPC_HTTP_URL=https://nova.gemini-3g.subspace.network/ws
# ETHEREUM_JSONRPC_FALLBACK_HTTP_URL=
DATABASE_URL=postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@db:5432/blockscout
DATABASE_URL=postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ETHEREUM_JSONRPC_TRACE_URL=https://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_WS_URL=wss://nova.gemini-3g.subspace.network/ws
ETHEREUM_JSONRPC_TRACE_URL=https://nova.gemini-3g.subspace.network
# ETHEREUM_JSONRPC_FALLBACK_TRACE_URL=
NETWORK=Subspace
SUBNETWORK=Gemini 3g
Expand Down
16 changes: 12 additions & 4 deletions docker-compose/envs/common-frontend.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NEXT_PUBLIC_API_HOST=nova.subspace.network
NEXT_PUBLIC_API_PROTOCOL=https
NEXT_PUBLIC_STATS_API_HOST=http://localhost:8080
NEXT_PUBLIC_NETWORK_NAME=Gemini 3g
NEXT_PUBLIC_NETWORK_SHORT_NAME=Gemini 3g
NEXT_PUBLIC_NETWORK_NAME=Gemini 3g Nova
NEXT_PUBLIC_NETWORK_SHORT_NAME=Gemini 3g Nova
NEXT_PUBLIC_NETWORK_ID=1002
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=Subspace
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=TSSC
Expand All @@ -14,5 +14,13 @@ NEXT_PUBLIC_APP_PROTOCOL=https
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs']
NEXT_PUBLIC_VISUALIZE_API_HOST=http://localhost:8081
NEXT_PUBLIC_IS_TESTNET=true
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml
NEXT_PUBLIC_NETWORK_LOGO=https://static.r2.subspace.network/logo.svg
NEXT_PUBLIC_NETWORK_ICON=https://static.r2.subspace.network/logo-small.svg
NEXT_PUBLIC_NETWORK_ICON_DARK=https://static.r2.subspace.network/logo-small.svg
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=rgb(255, 255, 255)
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=wss
NEXT_PUBLIC_WEB3_WALLETS=['metamask']
NEXT_PUBLIC_WEB3_DISABLE_ADD_TOKEN_TO_WALLET=false
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=b989b4df40c7db4da07ff951dd48cac6
NEXT_PUBLIC_NETWORK_RPC_URL=https://nova.gemini-3g.subspace.network/ws

Loading