secure home-server endpoints

This commit is contained in:
2022-11-21 22:38:52 +00:00
parent 97f22195fb
commit ea6d4e486d
2 changed files with 6 additions and 14 deletions

View File

@@ -8,9 +8,3 @@ MARIADB_ROOT_PASSWORD=testing
MARIADB_DATABASE=homeassistant MARIADB_DATABASE=homeassistant
MARIADB_USER=homeassistant_user MARIADB_USER=homeassistant_user
MARIADB_PASSWORD=homeassistant_pw MARIADB_PASSWORD=homeassistant_pw
# Grafana settings
GF_SECURITY_ADMIN_USER=test
GF_SECURITY_ADMIN_PASSWORD=test
GF_USERS_ALLOW_SIGN_UP=false

View File

@@ -50,7 +50,7 @@ services:
- '--path.sysfs=/host/sys' - '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports: ports:
- 9100:9100 - ${INTERNAL_IP}:9100:9100
prometheus: prometheus:
image: prom/prometheus:latest image: prom/prometheus:latest
container_name: prometheus container_name: prometheus
@@ -65,15 +65,13 @@ services:
- '--web.console.templates=/etc/prometheus/consoles' - '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle' - '--web.enable-lifecycle'
ports: ports:
- 9090:9090 - ${INTERNAL_IP}:9090:9090
user: "1000:1000"
grafana: grafana:
image: grafana/grafana:latest image: grafana/grafana:latest
ports:
- ${INTERNAL_IP}:3000:3000
volumes:
- /home/willem/grafana:/var/lib/grafana
env_file: env_file:
- .env - .env
- .env.production - .env.production
ports:
- 3000:3000
user: "1000:1000"
volumes:
- /home/willem/grafana:/var/lib/grafana