Added syncthing,grafana and wireguard

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-12-10 03:21:11 +01:00
parent cbb3bfd854
commit 2ba4259dd6
10 changed files with 106 additions and 14 deletions

View File

@@ -76,7 +76,39 @@ services:
- "traefik.http.routers.pihole.rule=Host(`pihole.{{local_domain}}`)"
- "traefik.http.routers.pihole.entrypoints=web"
- "traefik.http.services.pihole.loadbalancer.server.port=8089"
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: syncthing
networks:
- net
environment:
- PUID=1000
- PGID=1000
volumes:
- "{{syncthing_data}}:/var/syncthing"
ports:
- 8384:8384 # Web UI
- 22000:22000/tcp # TCP file transfers
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped
grafana:
image: grafana/grafana-oss
container_name: grafana
hostname: grafana
networks:
- net
environment:
- "PUID={{ puid }}"
- "PGID={{ pgid }}"
- "GF_LOG_MODE=console file"
volumes:
- "{{ grafana_data }}:/var/lib/grafana/"
- "{{ grafana_log }}:/var/log/grafana/"
- "{{ grafana_config }}:/etc/grafana/"
ports:
- 3000:3000
networks:

View File

@@ -18,8 +18,8 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.{{local_domain}}`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.services.traefik.loadbalancer.server.port=80"
# - "traefik.http.routers.traefik.entrypoints=web"
# - "traefik.http.services.traefik.loadbalancer.server.port=80"
ddns-updater:
container_name: ddns-updater
image: "ghcr.io/qdm12/ddns-updater"
@@ -34,17 +34,21 @@ services:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
restart: unless-stopped
# network_mode: host
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ ha_config }}:/config/"
privileged: true
ports:
- 8123:8123
- 4357:4357
- 5683:5683
- 5683:5683/udp
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant.rule=Host(`hass.{{local_domain}}`)"
- "traefik.http.routers.homeassistant.entrypoints=web"
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
# - "traefik.http.routers.homeassistant.entrypoints=web"
# - "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
pihole:
container_name: pihole
image: pihole/pihole:latest
@@ -74,8 +78,8 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.rule=Host(`pihole.{{local_domain}}`)"
- "traefik.http.routers.pihole.entrypoints=web"
- "traefik.http.services.pihole.loadbalancer.server.port=8089"
# - "traefik.http.routers.pihole.entrypoints=web"
# - "traefik.http.services.pihole.loadbalancer.server.port=8089"
networks:
net: