add verification service to default compose file

pull/6071/head
Lymarenko Lev 2 years ago
parent 4f78f4bd8c
commit e5b6583ed2
  1. 13
      docker-compose/README.md
  2. 13
      docker-compose/docker-compose-no-rust-verification.yml
  3. 12
      docker-compose/docker-compose.yml

@ -10,15 +10,22 @@ Runs BlockScout locally in Docker container with usage [docker-compose](https://
## Building Docker containers from source
```
```bash
docker-compose up --build
```
This command uses by-default `docker-compose.yml`, which build the explorer into Docker image and runs 2 Docker containers:
This command uses by-default `docker-compose.yml`, which build the explorer into Docker image and runs 3 Docker containers:
- one for the database. Postgres 13.x, which will be available at port 7432 on localhost
- [smart-contract-verifier](https://github.com/blockscout/blockscout-rs/) service, which will be available at port 8043 on localhost
- and the BlockScout explorer at http://localhost:4000
## Building Docker contrainers from source with native smart contract verification (deprecated)
```bash
docker-compose -f docker-compose-no-rust-verification.yml up --build
```
## Configs for different Ethereum clients
Also, the repo contains built-in configs for different clients without need to build the image
@ -33,4 +40,4 @@ All of the configs assume, that the Ethereum JSON RPC is running at http://local
In order to stop launched containers, run `docker-compose -d -f config_file.yml down`, where replace `config_file.yml` with the file name of the config, which has been launched before.
You can play with the BlockScout environment variables, which are present at `./envs/common-blockscout.env`. The description of the environment variables are available in [the docs](https://docs.blockscout.com/for-developers/information-and-settings/env-variables).
You can play with the BlockScout environment variables, which are present at `./envs/common-blockscout.env`. The description of the environment variables are available in [the docs](https://docs.blockscout.com/for-developers/information-and-settings/env-variables).

@ -15,7 +15,6 @@ services:
blockscout:
depends_on:
- db
- smart-contract-verifier
image: blockscout/blockscout:${DOCKER_TAG:-latest}
build:
context: ..
@ -42,17 +41,5 @@ services:
- 'host.docker.internal:host-gateway'
env_file:
- ./envs/common-blockscout.env
environment:
ENABLE_RUST_VERIFICATION_SERVICE: 'true'
RUST_VERIFICATION_SERVICE_URL: 'http://host.docker.internal:8043/'
ports:
- 4000:4000
smart-contract-verifier:
image: ghcr.io/blockscout/smart-contract-verifier:${SMART_CONTRACT_VERIFIER_DOCKER_TAG:-latest}
restart: always
container_name: 'smart-contract-verifier'
env_file:
- ./envs/common-smart-contract-verifier.env
ports:
- 8043:8043

@ -15,6 +15,7 @@ services:
blockscout:
depends_on:
- db
- smart-contract-verifier
image: blockscout/blockscout:${DOCKER_TAG:-latest}
build:
context: ..
@ -41,6 +42,17 @@ services:
- 'host.docker.internal:host-gateway'
env_file:
- ./envs/common-blockscout.env
environment:
ENABLE_RUST_VERIFICATION_SERVICE: 'true'
RUST_VERIFICATION_SERVICE_URL: 'http://host.docker.internal:8043/'
ports:
- 4000:4000
smart-contract-verifier:
image: ghcr.io/blockscout/smart-contract-verifier:${SMART_CONTRACT_VERIFIER_DOCKER_TAG:-latest}
restart: always
container_name: 'smart-contract-verifier'
env_file:
- ./envs/common-smart-contract-verifier.env
ports:
- 8043:8043

Loading…
Cancel
Save