diff --git a/docker-compose.yml b/docker-compose.yml index 44eb4be..112e4b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,7 +89,26 @@ services: max-file: 2 max-size: 5m + prometheus: + container_name: prometheus + image: prom/prometheus:latest + restart: unless-stopped + command: --config.file=/etc/prometheus/prometheus.yml + ports: + - "9090:9090" + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml + - prometheus-data:/prometheus + networks: + - docker_main_net + logging: + driver: "json-file" + options: + max-file: 5 + max-size: 10m + volumes: + prometheus-data: op-geth-storage: op-node-storage: op-secrets: