2022-11-30 23:49:07 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
container_name: traefik
|
2022-12-05 16:47:35 +01:00
|
|
|
image: traefik:latest
|
2023-04-27 10:52:49 +02:00
|
|
|
restart: unless-stopped
|
2022-11-30 23:49:07 +01:00
|
|
|
networks:
|
2022-12-05 18:25:36 +01:00
|
|
|
net: {}
|
2022-11-30 23:49:07 +01:00
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ traefik_config }}:/etc/traefik/"
|
|
|
|
- "{{ traefik_data }}:/var/log/"
|
2022-11-30 23:49:07 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ traefik_user_port }}:80"
|
|
|
|
- "{{ traefik_admin_port }}:8080"
|
2023-04-27 10:52:49 +02:00
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
net: {}
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
- "67:67/udp"
|
|
|
|
- "{{ pihole_port }}:80/tcp"
|
|
|
|
environment:
|
|
|
|
- "WEBPASSWORD={{ vault_pi_pihole_password }}"
|
|
|
|
- "ServerIP=192.168.20.11"
|
|
|
|
- "INTERFACE=eth0"
|
|
|
|
- "DNS1=1.1.1.1"
|
|
|
|
- "DNS1=1.0.0.1"
|
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "{{ pihole_config }}:/etc/pihole/"
|
|
|
|
- "{{ pihole_dnsmasq }}:/etc/dnsmasq.d/"
|
|
|
|
dns:
|
|
|
|
- 127.0.0.1
|
|
|
|
- 1.1.1.1
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.pihole.rule=Host(`{{ pihole_host }}.{{ pi_host }}.{{ local_domain }}`)"
|
|
|
|
- "traefik.http.services.pihole.loadbalancer.server.port={{ 80 }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2022-11-30 23:49:07 +01:00
|
|
|
ddns-updater:
|
|
|
|
container_name: ddns-updater
|
|
|
|
image: "ghcr.io/qdm12/ddns-updater"
|
2023-04-27 10:52:49 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- pihole
|
2022-11-30 23:49:07 +01:00
|
|
|
networks:
|
2022-12-05 18:25:36 +01:00
|
|
|
net: {}
|
2022-11-30 23:49:07 +01:00
|
|
|
volumes:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ ddns_data }}:/updater/data/"
|
2022-11-30 23:49:07 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ ddns_port }}:8000/tcp"
|
2023-02-09 01:14:30 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "traefik.http.routers.ddns-updater.rule=Host(`{{ ddns_host }}.{{ pi_host }}.{{local_domain}}`)"
|
|
|
|
- "traefik.http.services.ddns-updater.loadbalancer.server.port={{ ddns_port }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2022-11-30 23:49:07 +01:00
|
|
|
homeassistant:
|
|
|
|
container_name: homeassistant
|
|
|
|
image: "ghcr.io/home-assistant/home-assistant:stable"
|
2023-04-27 10:52:49 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- pihole
|
2023-02-09 01:14:30 +01:00
|
|
|
networks:
|
|
|
|
net: {}
|
2022-12-05 16:47:35 +01:00
|
|
|
volumes:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2022-12-06 23:29:57 +01:00
|
|
|
- "{{ ha_config }}:/config/"
|
2022-11-30 23:49:07 +01:00
|
|
|
privileged: true
|
2022-12-08 23:54:31 +01:00
|
|
|
ports:
|
2023-04-13 18:43:32 +02:00
|
|
|
- "{{ ha_port }}:8123"
|
2022-12-10 03:21:11 +01:00
|
|
|
- 4357:4357
|
|
|
|
- 5683:5683
|
|
|
|
- 5683:5683/udp
|
2022-11-30 23:49:07 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-13 18:43:32 +02:00
|
|
|
- "traefik.http.routers.homeassistant.rule=Host(`{{ ha_host }}.{{ pi_host }}.{{ local_domain }}`)"
|
|
|
|
- "traefik.http.services.homeassistant.loadbalancer.server.port={{ ha_port }}"
|
2022-12-29 22:45:17 +01:00
|
|
|
|
2022-11-30 23:49:07 +01:00
|
|
|
networks:
|
2022-12-05 18:25:36 +01:00
|
|
|
net:
|
2022-11-30 23:49:07 +01:00
|
|
|
driver: bridge
|
|
|
|
ipam:
|
2022-12-06 16:36:21 +01:00
|
|
|
# driver: default
|
2022-11-30 23:49:07 +01:00
|
|
|
config:
|
|
|
|
- subnet: 172.16.69.0/24
|
|
|
|
gateway: 172.16.69.1
|