Update configuration

This commit is contained in:
2024-10-06 17:26:49 +02:00
parent 414cbded95
commit fc0db54fb7
7 changed files with 87 additions and 90 deletions

View File

@@ -1,18 +1,25 @@
services:
whoami:
restart: unless-stopped
image: traefik/whoami
command:
- --port=2001
traefik:
restart: unless-stopped
image: "traefik:1.7.10"
image: traefik:v3.2
labels:
- traefik.http.routers.dashboard.rule=Host(`traefik.pladijs`)
- traefik.http.services.dashboard.loadbalancer.server.port=8080
volumes:
- ${REPO_DIR}/configurations/traefik/traefik.1.7.10.toml:/etc/traefik/traefik.toml
- ${REPO_DIR}/configurations/traefik/traefik.yml:/etc/traefik/traefik.yml
- ${STORAGE_DIR}/certificates:/var/lib/certificates
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
whoami:
restart: unless-stopped
image: traefik/whoami
labels:
- traefik.http.routers.whoami.rule=Host(`whoami.pladijs`)
- traefik.http.services.whoami.loadbalancer.server.port=2001
command:
- --port=2001
db:
image: mariadb:latest
restart: unless-stopped
@@ -25,8 +32,13 @@ services:
- ${STORAGE_DIR}/mariadb:/var/lib/mysql
homeassistant:
image: "ghcr.io/home-assistant/home-assistant:stable"
labels:
- traefik.http.routers.homeassistant.rule=Host(`homeassistant.pladijs`)
- traefik.http.services.homeassistant.loadbalancer.server.port=8123
volumes:
- ${STORAGE_DIR}/homeassistant:/config
- ${STORAGE_DIR}/homeassistant:/config
- ${REPO_DIR}/configurations/home-assistant/configuration-production.yaml:/config/configuration.yaml
restart: unless-stopped
env_file:
- envs/local.env
@@ -34,6 +46,9 @@ services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
labels:
- traefik.http.routers.syncthing.rule=Host(`syncthing.pladijs`)
- traefik.http.services.syncthing.loadbalancer.server.port=8384
environment:
- PUID=1000
- PGID=1000
@@ -58,12 +73,16 @@ services:
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports:
- 9100:9100
labels:
- traefik.http.routers.node-exporter.rule=Host(`node-exporter.pladijs`)
- traefik.http.services.node-exporter.loadbalancer.server.port=9100
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
labels:
- traefik.http.routers.prometheus.rule=Host(`prometheus.pladijs`)
- traefik.http.services.prometheus.loadbalancer.server.port=9090
volumes:
- ${REPO_DIR}/configurations/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ${STORAGE_DIR}/prometheus:/prometheus
@@ -73,8 +92,6 @@ services:
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
ports:
- 9090:9090
grafana:
image: grafana/grafana:latest
volumes:
@@ -82,8 +99,14 @@ services:
env_file:
- envs/local.env
- envs/production.env
labels:
- traefik.http.routers.grafana.rule=Host(`grafana.pladijs`)
- traefik.http.services.grafana.loadbalancer.server.port=3000
influxdb:
container_name: influxdb
labels:
- traefik.http.routers.influxdb.rule=Host(`influxdb.pladijs`)
- traefik.http.services.influxdb.loadbalancer.server.port=3000
image: influxdb
restart: unless-stopped
environment: