-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·42 lines (39 loc) · 988 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3.3'
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
dns:
- 127.0.0.1
- 1.1.1.1
# network_mode: host
ports:
- '0.0.0.0:53:53/tcp'
- '0.0.0.0:53:53/udp'
- '0.0.0.0:67:67/udp'
- '0.0.0.0:8053:80/tcp'
environment:
ServerIP: ${HOST_IP}
WEBPASSWORD: ${PIHOLE_WEBPASSWORD}
PROXY_LOCATION: pihole
VIRTUAL_HOST: pihole.${MAIN_DOMAIN}:8053
VIRTUAL_PORT: 80
volumes:
- ./pihole:/etc/pihole/
- /etc/localtime:/etc/localtime:ro
restart: always
extra_hosts:
- 'pihole.${MAIN_DOMAIN}:${HOST_IP}'
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi3-homeassistant:latest
network_mode: host
ports:
- ${HA_PORT}:${HA_PORT}
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
privileged: true
restart: always
extra_hosts:
- 'ha.${MAIN_DOMAIN}:${HOST_IP}'