-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
84 lines (83 loc) · 1.99 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
# pihole:
# container_name: pihole
# image: pihole/pihole:latest
# ports:
# - "53:53/tcp"
# - "53:53/udp"
# - "67:67/udp"
# - "800:80/tcp"
# - "4430:443/tcp"
# environment:
# TZ: 'America/Chicago'
# WEBPASSWORD: ${PIHOLE_PASSWORD}
# # Volumes store your data between container upgrades
# volumes:
# - etcpihole:/etc/pihole/
# - etcdnsmasqd:/etc/dnsmasq.d/
# dns:
# - 127.0.0.1
# - 1.1.1.1
# # Recommended but not required (DHCP needs NET_ADMIN)
# # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# cap_add:
# - NET_ADMIN
# restart: unless-stopped
cpihole:
build:
context: ./cpihole
container_name: cpihole
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8081:80/tcp"
- "4431:443/tcp"
environment:
TZ: 'America/Chicago'
WEBPASSWORD: ${PIHOLE_PASSWORD}
# Volumes store your data between container upgrades
volumes:
- etcpihole:/etc/pihole/
- etcdnsmasqd:/etc/dnsmasq.d/
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
restart: unless-stopped
webui:
build:
context: ./webui
container_name: webui
privileged: true
ports:
- "8080:8080/tcp"
environment:
SERVER_IP: ${SERVER_IP}
volumes:
- etcdnsmasqd:/etc/dnsmasq.d/
restart: unless-stopped
sniproxyvpn:
build:
context: ./sniproxyvpn
container_name: sniproxyvpn
privileged: true
ports:
- "80:80/tcp"
- "443:443/tcp"
environment:
VPN_USERNAME: ${VPN_USERNAME}
VPN_PASSWORD: ${VPN_PASSWORD}
VPN_OPTIONS: ${VPN_OPTIONS}
CIDR_NETWORK: ${CIDR_NETWORK}
VPN_DNS1: ${VPN_DNS1}
VPN_DNS2: ${VPN_DNS2}
restart: unless-stopped
volumes:
etcpihole:
driver: local
etcdnsmasqd:
driver: local