Set integration with Blockscout eth bytecode DB endpoint by default, replace old UI with new one in docker-compose configs, set default value for port: 4000
parent
af275a2777
commit
1d6da1b305
@ -1,3 +1,3 @@ |
||||
elixir 1.14.5-otp-25 |
||||
erlang 25.3.2.3 |
||||
nodejs 18.16.1 |
||||
erlang 25.3.2.6 |
||||
nodejs 18.17.1 |
||||
|
@ -1,6 +0,0 @@ |
||||
|
||||
--- |
||||
creation_rules: |
||||
- path_regex: ^(.+/)?secrets\.yaml$ |
||||
pgp: >- |
||||
99E83B7490B1A9F51781E6055317CE0D5CE1230B |
File diff suppressed because one or more lines are too long
@ -1,436 +0,0 @@ |
||||
global: |
||||
env: testnet |
||||
|
||||
blockscout: |
||||
enabled: true |
||||
image: |
||||
_default: &image blockscout/blockscout:latest |
||||
|
||||
ingress: |
||||
enabled: true |
||||
tls: |
||||
enabled: true |
||||
createSecret: true |
||||
# init container |
||||
init: |
||||
enabled: true |
||||
image: |
||||
_default: *image |
||||
|
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: "8Gi" |
||||
cpu: |
||||
_default: "3" |
||||
requests: |
||||
memory: |
||||
_default: "6Gi" |
||||
cpu: |
||||
_default: "2" |
||||
|
||||
# node label |
||||
nodeSelector: |
||||
enabled: true |
||||
labels: |
||||
_default: |
||||
app: blockscout |
||||
|
||||
environment: |
||||
ETHEREUM_JSONRPC_VARIANT: |
||||
_default: geth |
||||
HEART_BEAT_TIMEOUT: |
||||
_default: 30 |
||||
PORT: |
||||
_default: 4000 |
||||
SUBNETWORK: |
||||
_default: Goerli |
||||
HEALTHY_BLOCKS_PERIOD: |
||||
_default: 60 |
||||
NETWORK: |
||||
_default: (Ethereum) |
||||
NETWORK_ICON: |
||||
_default: _network_icon.html |
||||
COIN: |
||||
_default: ETH |
||||
ECTO_USE_SSL: |
||||
_default: 'false' |
||||
COIN_NAME: |
||||
_default: ETH |
||||
LOGO: |
||||
_default: /images/goerli_logo.svg |
||||
TXS_STATS_DAYS_TO_COMPILE_AT_INIT: |
||||
_default: 10 |
||||
COIN_BALANCE_HISTORY_DAYS: |
||||
_default: 90 |
||||
POOL_SIZE: |
||||
_default: 300 |
||||
POOL_SIZE_API: |
||||
_default: 10 |
||||
ACCOUNT_POOL_SIZE: |
||||
_default: 10 |
||||
DISPLAY_TOKEN_ICONS: |
||||
_default: 'true' |
||||
FETCH_REWARDS_WAY: |
||||
_default: manual |
||||
SHOW_TESTNET_LABEL: |
||||
_default: 'true' |
||||
CHAIN_ID: |
||||
_default: 5 |
||||
MICROSERVICE_SC_VERIFIER_ENABLED: |
||||
_default: 'true' |
||||
MICROSERVICE_VISUALIZE_SOL2UML_ENABLED: |
||||
_default: 'true' |
||||
MICROSERVICE_SIG_PROVIDER_ENABLED: |
||||
_default: 'true' |
||||
INDEXER_MEMORY_LIMIT: |
||||
_default: 7 |
||||
ACCOUNT_ENABLED: |
||||
_default: 'true' |
||||
API_V2_ENABLED: |
||||
_default: 'true' |
||||
APPS_MENU: |
||||
_default: 'true' |
||||
APPS: |
||||
_default: '[{"title": "Marketplace", "url": "/apps", "embedded?": true}]' |
||||
ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT: |
||||
_default: '20s' |
||||
ETHEREUM_JSONRPC_HTTP_TIMEOUT: |
||||
_default: 60 |
||||
INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE: |
||||
_default: 15 |
||||
INDEXER_DISABLE_EMPTY_BLOCKS_SANITIZER: |
||||
_default: 'true' |
||||
INDEXER_RECEIPTS_BATCH_SIZE: |
||||
_default: 50 |
||||
INDEXER_COIN_BALANCES_BATCH_SIZE: |
||||
_default: 50 |
||||
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: |
||||
_default: 'true' |
||||
INDEXER_TX_ACTIONS_ENABLE: |
||||
_default: 'true' |
||||
DISABLE_EXCHANGE_RATES: |
||||
_default: 'true' |
||||
SOURCIFY_INTEGRATION_ENABLED: |
||||
_default: 'true' |
||||
|
||||
frontend: |
||||
app: blockscout |
||||
enabled: true |
||||
image: |
||||
_default: ghcr.io/blockscout/frontend:main |
||||
replicas: |
||||
app: 2 |
||||
ingress: |
||||
enabled: true |
||||
# enable https |
||||
tls: |
||||
enabled: true |
||||
createSecret: false |
||||
path: |
||||
exact: |
||||
- "/" |
||||
prefix: |
||||
- "/apps" |
||||
- "/_next" |
||||
- "/node-api" |
||||
- "/static" |
||||
- "/auth/profile" |
||||
- "/account" |
||||
- "/txs" |
||||
- "/tx" |
||||
- "/blocks" |
||||
- "/block" |
||||
- "/stats" |
||||
- "/address" |
||||
- "/search-results" |
||||
- "/token" |
||||
- "/tokens" |
||||
- "/accounts" |
||||
- "/visualize" |
||||
- "/api-docs" |
||||
- "/csv-export" |
||||
|
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: "2Gi" |
||||
cpu: |
||||
_default: "2" |
||||
requests: |
||||
memory: |
||||
_default: "512Mi" |
||||
cpu: |
||||
_default: "250m" |
||||
# node label |
||||
nodeSelector: |
||||
enabled: true |
||||
labels: |
||||
_default: |
||||
app: blockscout-prod |
||||
environment: |
||||
# ui config |
||||
NEXT_PUBLIC_NETWORK_EXPLORERS: |
||||
_default: "[{'title':'Etherscan','baseUrl':'https://goerli.etherscan.io/','paths':{'tx':'/tx','address':'/address'}}]" |
||||
# network config |
||||
NEXT_PUBLIC_NETWORK_NAME: |
||||
_default: Ethereum |
||||
NEXT_PUBLIC_NETWORK_SHORT_NAME: |
||||
_default: Goerli |
||||
NEXT_PUBLIC_NETWORK_ASSETS_PATHNAME: |
||||
_default: ethereum |
||||
NEXT_PUBLIC_NETWORK_ID: |
||||
_default: 5 |
||||
NEXT_PUBLIC_NETWORK_CURRENCY_NAME: |
||||
_default: Ether |
||||
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: |
||||
_default: ETH |
||||
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS: |
||||
_default: 18 |
||||
NEXT_PUBLIC_NETWORK_TOKEN_ADDRESS: |
||||
_default: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
||||
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED: |
||||
_default: true |
||||
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE: |
||||
_default: validation |
||||
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM: |
||||
_default: https://airtable.com/shrqUAcjgGJ4jU88C |
||||
# api config |
||||
NEXT_PUBLIC_API_BASE_PATH: |
||||
_default: / |
||||
NEXT_PUBLIC_FOOTER_GITHUB_LINK: |
||||
_default: https://github.com/blockscout/blockscout |
||||
NEXT_PUBLIC_FOOTER_TWITTER_LINK: |
||||
_default: https://www.twitter.com/blockscoutcom |
||||
NEXT_PUBLIC_APP_ENV: |
||||
_default: staging |
||||
NEXT_PUBLIC_APP_INSTANCE: |
||||
_default: unknown |
||||
NEXT_PUBLIC_HOMEPAGE_CHARTS: |
||||
_default: "['daily_txs']" |
||||
NEXT_PUBLIC_NETWORK_RPC_URL: |
||||
_default: https://rpc.ankr.com/eth_goerli |
||||
NEXT_PUBLIC_IS_TESTNET: |
||||
_default: 'true' |
||||
NEXT_PUBLIC_API_SPEC_URL: |
||||
_default: https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml |
||||
# enable stats deploy |
||||
stats: |
||||
enabled: true |
||||
image: |
||||
_default: ghcr.io/blockscout/stats:main |
||||
|
||||
# enable ingress |
||||
ingress: |
||||
enabled: true |
||||
# enable https |
||||
tls: |
||||
enabled: true |
||||
createSecret: true |
||||
|
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: 128Mi |
||||
cpu: |
||||
_default: 100m |
||||
requests: |
||||
memory: |
||||
_default: 128Mi |
||||
cpu: |
||||
_default: 100m |
||||
|
||||
# node label |
||||
nodeSelector: |
||||
enabled: true |
||||
labels: |
||||
_default: |
||||
app: blockscout |
||||
|
||||
# enable Horizontal Pod Autoscaler |
||||
hpa: |
||||
enabled: true |
||||
|
||||
environment: |
||||
RUST_LOG: |
||||
_default: info |
||||
STATS__RUN_MIGRATIONS: |
||||
_default: 'true' |
||||
STATS__TRACING__FORMAT: |
||||
_default: json |
||||
STATS__METRICS__ENABLED: |
||||
_default: 'true' |
||||
|
||||
postgres: |
||||
enabled: true |
||||
image: postgres:14.7 |
||||
port: 5432 |
||||
|
||||
command: '["docker-entrypoint.sh", "-c"]' |
||||
args: '["max_connections=500"]' |
||||
|
||||
customShm: |
||||
enabled: false |
||||
|
||||
files: |
||||
enabled: true |
||||
mountPath: /docker-entrypoint-initdb.d |
||||
|
||||
persistence: true |
||||
storage: 500Gi |
||||
|
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: "2Gi" |
||||
cpu: |
||||
_default: "2" |
||||
requests: |
||||
memory: |
||||
_default: "2Gi" |
||||
cpu: |
||||
_default: "2" |
||||
|
||||
# enable Smart-contract-verifier deploy |
||||
scVerifier: |
||||
enabled: true |
||||
image: |
||||
_default: ghcr.io/blockscout/smart-contract-verifier:main |
||||
# enable ingress |
||||
ingress: |
||||
enabled: true |
||||
# enable https |
||||
tls: |
||||
enabled: true |
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: 512Mi |
||||
cpu: |
||||
_default: 250m |
||||
requests: |
||||
memory: |
||||
_default: 512Mi |
||||
cpu: |
||||
_default: 250m |
||||
# probes |
||||
livenessProbe: |
||||
enabled: true |
||||
# path: /health |
||||
readinessProbe: |
||||
enabled: true |
||||
# path: /health |
||||
# enable Horizontal Pod Autoscaler |
||||
hpa: |
||||
enabled: true |
||||
environment: |
||||
SMART_CONTRACT_VERIFIER__SERVER__HTTP__ADDR: |
||||
_default: 0.0.0.0:8050 |
||||
SMART_CONTRACT_VERIFIER__SERVER__GRPC__ADDR: |
||||
_default: 0.0.0.0:8051 |
||||
# SMART_CONTRACT_VERIFIER__SOLIDITY__ENABLED: |
||||
# _default: 'true' |
||||
SMART_CONTRACT_VERIFIER__SOLIDITY__COMPILERS_DIR: |
||||
_default: /tmp/solidity-compilers |
||||
SMART_CONTRACT_VERIFIER__SOLIDITY__REFRESH_VERSIONS_SCHEDULE: |
||||
_default: 0 0 * * * * * |
||||
# It depends on the OS you are running the service on |
||||
# SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__LIST__LIST_URL: |
||||
# _default: https://solc-bin.ethereum.org/linux-amd64/list.json |
||||
#SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__LIST__LIST_URL=https://solc-bin.ethereum.org/macosx-amd64/list.json |
||||
#SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__LIST__LIST_URL=https://solc-bin.ethereum.org/windows-amd64/list.json |
||||
SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__S3__REGION: |
||||
_default: "" |
||||
SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__S3__ENDPOINT: |
||||
_default: https://storage.googleapis.com |
||||
SMART_CONTRACT_VERIFIER__SOURCIFY__ENABLED: |
||||
_default: 'true' |
||||
SMART_CONTRACT_VERIFIER__SOURCIFY__API_URL: |
||||
_default: https://sourcify.dev/server/ |
||||
SMART_CONTRACT_VERIFIER__SOURCIFY__VERIFICATION_ATTEMPTS: |
||||
_default: 3 |
||||
SMART_CONTRACT_VERIFIER__SOURCIFY__REQUEST_TIMEOUT: |
||||
_default: 10 |
||||
SMART_CONTRACT_VERIFIER__METRICS__ENABLED: |
||||
_default: 'true' |
||||
SMART_CONTRACT_VERIFIER__METRICS__ADDR: |
||||
_default: 0.0.0.0:6060 |
||||
SMART_CONTRACT_VERIFIER__METRICS__ROUTE: |
||||
_default: /metrics |
||||
SMART_CONTRACT_VERIFIER__JAEGER__ENABLED: |
||||
_default: 'false' |
||||
|
||||
# enable visualizer deploy |
||||
visualizer: |
||||
enabled: true |
||||
image: |
||||
_default: ghcr.io/blockscout/visualizer:main |
||||
|
||||
# enable ingress |
||||
ingress: |
||||
enabled: true |
||||
host: |
||||
_default: visualizer.test.aws-k8s.blockscout.com |
||||
# enable https |
||||
tls: |
||||
enabled: true |
||||
createSecret: false |
||||
|
||||
resources: |
||||
limits: |
||||
memory: |
||||
_default: 64Mi |
||||
cpu: |
||||
_default: 50m |
||||
requests: |
||||
memory: |
||||
_default: 64Mi |
||||
cpu: |
||||
_default: 50m |
||||
|
||||
# node label |
||||
nodeSelector: |
||||
enabled: true |
||||
labels: |
||||
_default: |
||||
app: blockscout |
||||
|
||||
environment: |
||||
VISUALIZER__SERVER__HTTP__ENABLED: |
||||
_default: 'true' |
||||
VISUALIZER__SERVER__HTTP__ADDR: |
||||
_default: 0.0.0.0:8050 |
||||
VISUALIZER__SERVER__GRPC__ENABLED: |
||||
_default: 'false' |
||||
|
||||
# enable sig-provider deploy |
||||
sigProvider: |
||||
enabled: true |
||||
image: |
||||
_default: ghcr.io/blockscout/sig-provider:main |
||||
|
||||
# enable ingress |
||||
ingress: |
||||
enabled: true |
||||
# enable https |
||||
tls: |
||||
enabled: true |
||||
createSecret: false |
||||
|
||||
# enable Horizontal Pod Autoscaler |
||||
hpa: |
||||
enabled: false |
||||
|
||||
# probes |
||||
livenessProbe: |
||||
enabled: false |
||||
readinessProbe: |
||||
enabled: false |
||||
|
||||
environment: |
||||
SIG_PROVIDER__METRICS__ENABLED: |
||||
_default: 'true' |
||||
SIG_PROVIDER__SERVER__HTTP__ADDR: |
||||
_default: 0.0.0.0:8043 |
||||
SIG_PROVIDER__SERVER__GRPC__ENABLED: |
||||
_default: 'false' |
@ -1,92 +0,0 @@ |
||||
version: '3.8' |
||||
|
||||
services: |
||||
redis_db: |
||||
extends: |
||||
file: ./services/docker-compose-redis.yml |
||||
service: redis_db |
||||
|
||||
db: |
||||
extends: |
||||
file: ./services/docker-compose-db.yml |
||||
service: db |
||||
|
||||
backend: |
||||
depends_on: |
||||
- db |
||||
- smart-contract-verifier |
||||
- redis_db |
||||
image: blockscout/blockscout:${DOCKER_TAG:-master} |
||||
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" |
||||
extra_hosts: |
||||
- 'host.docker.internal:host-gateway' |
||||
env_file: |
||||
- ./envs/common-blockscout.env |
||||
environment: |
||||
ETHEREUM_JSONRPC_VARIANT: 'ganache' |
||||
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/ |
||||
INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER: 'true' |
||||
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: 'true' |
||||
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false |
||||
ECTO_USE_SSL: 'false' |
||||
SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN' |
||||
CHAIN_ID: '1337' |
||||
API_V2_ENABLED: 'true' |
||||
MIX_ENV: 'prod' |
||||
ports: |
||||
- 4000:4000 |
||||
volumes: |
||||
- ./logs/:/app/logs/ |
||||
|
||||
smart-contract-verifier: |
||||
extends: |
||||
file: ./services/docker-compose-smart-contract-verifier.yml |
||||
service: smart-contract-verifier |
||||
|
||||
visualizer: |
||||
extends: |
||||
file: ./services/docker-compose-visualizer.yml |
||||
service: visualizer |
||||
|
||||
sig-provider: |
||||
extends: |
||||
file: ./services/docker-compose-sig-provider.yml |
||||
service: sig-provider |
||||
|
||||
frontend: |
||||
depends_on: |
||||
- backend |
||||
extends: |
||||
file: ./services/docker-compose-frontend.yml |
||||
service: frontend |
||||
|
||||
stats-db: |
||||
depends_on: |
||||
- backend |
||||
extends: |
||||
file: ./services/docker-compose-stats.yml |
||||
service: stats-db |
||||
|
||||
stats: |
||||
depends_on: |
||||
- stats-db |
||||
extends: |
||||
file: ./services/docker-compose-stats.yml |
||||
service: stats |
||||
|
||||
proxy: |
||||
depends_on: |
||||
- backend |
||||
- frontend |
||||
- stats |
||||
extends: |
||||
file: ./services/docker-compose-nginx.yml |
||||
service: proxy |
@ -1,49 +0,0 @@ |
||||
version: '3.8' |
||||
|
||||
services: |
||||
redis_db: |
||||
extends: |
||||
file: ./services/docker-compose-redis.yml |
||||
service: redis_db |
||||
|
||||
db: |
||||
extends: |
||||
file: ./services/docker-compose-db.yml |
||||
service: db |
||||
|
||||
blockscout: |
||||
depends_on: |
||||
- db |
||||
- redis_db |
||||
image: blockscout/blockscout:${DOCKER_TAG:-latest} |
||||
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 |
||||
MIX_ENV: 'prod' |
||||
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" |
||||
extra_hosts: |
||||
- 'host.docker.internal:host-gateway' |
||||
env_file: |
||||
- ./envs/common-blockscout.env |
||||
environment: |
||||
MICROSERVICE_SC_VERIFIER_ENABLED: 'false' |
||||
MICROSERVICE_VISUALIZE_SOL2UML_ENABLED: 'false' |
||||
MICROSERVICE_SIG_PROVIDER_ENABLED: 'false' |
||||
ports: |
||||
- 4000:4000 |
||||
volumes: |
||||
- ./logs/:/app/logs/ |
Loading…
Reference in new issue