Modified docker definitions to use internal caddy_net

Exposing ports on docker-compose bypasses UFW definitions, which is a
high risk, so we use internal networks only to connect between
containers
This commit is contained in:
2025-01-26 00:55:05 -03:00
parent 9b88311406
commit f352126e56
3 changed files with 4 additions and 6 deletions

View File

@@ -3,8 +3,6 @@ services:
image: prom/prometheus:latest
container_name: prometheus
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
@@ -15,12 +13,12 @@ services:
image: prom/node-exporter:latest
container_name: node-exporter
restart: always
ports:
- "9100:9100"
networks:
- monitoring_net
networks:
monitoring_net:
driver: bridge
caddy_net:
external: true