Merge pull request #8100 from blockscout/vb-extend-docker-compose-proxy
Extend docker-compose configs with new config when front is running externallyvb-fix-docker-compose-auth-path
commit
1e2b7eba59
@ -0,0 +1,83 @@ |
|||||||
|
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_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 |
||||||
|
|
||||||
|
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 |
||||||
|
- stats |
||||||
|
extends: |
||||||
|
file: ./services/docker-compose-nginx.yml |
||||||
|
service: proxy |
Loading…
Reference in new issue