polygon-gas-price-oracle/docker-compose.yml
2024-04-12 01:49:58 +00:00

40 lines
937 B
YAML

version: "3"
services:
maticgasstation:
container_name: maticgasstation
image: maticgasstation
restart: always
stop_grace_period: 1m
environment:
- POS_RPC=https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607
- ZKEVM_RPC=https://1rpc.io/polygon/zkevm
- PORT=7000
- SAFE=30
- STANDARD=32
- FAST=50
- HISTORY_BLOCKS=15
build:
context: .
dockerfile: maticgasstation.Dockerfile
ports:
- '127.0.0.1:7000:7000'
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:7000/v2"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
gaspriceoracle:
container_name: gaspriceoracle
image: gaspriceoracle
restart: always
stop_grace_period: 1m
env_file:
- ./docker.env
build:
context: .
depends_on:
maticgasstation:
condition: service_healthy