polygon-gas-price-oracle/docker-compose.yml

40 lines
937 B
YAML
Raw Normal View History

2024-04-12 02:23:08 +03:00
version: "3"
services:
maticgasstation:
container_name: maticgasstation
image: maticgasstation
restart: always
2024-04-12 04:49:58 +03:00
stop_grace_period: 1m
2024-04-12 02:23:08 +03:00
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
2024-04-12 02:56:26 +03:00
ports:
2024-04-12 02:23:08 +03:00
- '127.0.0.1:7000:7000'
2024-04-12 02:49:27 +03:00
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:7000/v2"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
2024-04-12 02:23:08 +03:00
gaspriceoracle:
container_name: gaspriceoracle
image: gaspriceoracle
restart: always
2024-04-12 04:49:58 +03:00
stop_grace_period: 1m
2024-04-12 02:23:08 +03:00
env_file:
- ./docker.env
build:
context: .
2024-04-12 02:49:27 +03:00
depends_on:
maticgasstation:
condition: service_healthy