From 2b59ddbe8aef09fa16f8b3f8b60d82c422feb40b Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Fri, 21 Nov 2025 19:23:17 -0500 Subject: [PATCH] Add docker-compose configuration for Prometheus service --- prometheus/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prometheus/docker-compose.yml diff --git a/prometheus/docker-compose.yml b/prometheus/docker-compose.yml new file mode 100644 index 0000000..07e4c46 --- /dev/null +++ b/prometheus/docker-compose.yml @@ -0,0 +1,20 @@ +--- +version: "3" +services: + prometheus: + image: prom/prometheus + container_name: prometheus + volumes: + - /docker-containers/prometheus:/etc/prometheus + - /docker-containers/prometheus/configs:/prometheus + ports: + - 9090:9090 + restart: unless-stopped + stdin_open: true # to attach to containers + tty: true # also used to attach to containers +# network_mode: service:wireguard # To run through vpn service container, in turn UI port must be forwarded inside vpn. No local access unless otherwise defined + networks: # Specify network for container + - homelab +networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area.. + homelab: + external: true # This option causes compose to join the above network instead of making a _default one (supposedly) \ No newline at end of file