From 15fb0079c1107164c2a0ec564a2b92844440b0b4 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 2 Aug 2021 02:45:56 -0500 Subject: [PATCH] Move prometheus from synapse to here --- docker-compose.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3d596ea..0bdf413 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,19 +34,13 @@ services: - 127.0.0.1:84:3000 restart: always - #prometheus: - # image: prom/prometheus:latest - # restart: always - # command: - # - --config.file=/etc/prometheus/prometheus.yml - # volumes: - # - ./prometheus.yml:/etc/prometheus/prometheus.yml - # - ./prometheus:/prometheus - # networks: - # - default - # - synapse - -#networks: -# synapse: -# external: true -# name: synapse_default + prometheus: + image: prom/prometheus:latest + restart: always + command: + - --config.file=/etc/prometheus/prometheus.yml + volumes: + - ./data/prometheus.yml:/etc/prometheus/prometheus.yml + - ./data/prometheus:/prometheus + extra_hosts: + - "host.docker.internal:host-gateway"