-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-for-metalbox-quantum-services.yml
137 lines (130 loc) · 4.75 KB
/
docker-compose-for-metalbox-quantum-services.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3.5"
networks:
networks_vlan_30:
external: true
services:
# dns-upstream:
# image: jhnrn/cloudflared:latest
# container_name: "cloudflared-dnsproxy-${QUANTUM_VLAN_NAME}"
# command: proxy-dns
# restart: always
# environment:
# TZ: ${TZ}
# TUNNEL_METRICS: "0.0.0.0:49312"
# TUNNEL_DNS_ADDRESS: "0.0.0.0"
# TUNNEL_DNS_PORT: ${TUNNEL_DNS_PORT}
# TUNNEL_DNS_UPSTREAM: ${QUANTUM_DNS_UPSTREAM}
# networks:
# networks_vlan_30:
# healthcheck:
# test: dig +short @127.0.0.1 -p${TUNNEL_DNS_PORT} cloudflare.com A || exit 1
# # test: 'curl --http2 -H "accept: application/dns-json" "https://1.1.1.1/dns-query?name=cloudflare.com" || exit 1'
# interval: 30s
# timeout: 5s
# retries: 2
# labels:
# - autoheal=true
# nextdns:
# container_name: nextdns
# image: "jhnrn/nextdns-cli:latest"
# restart: "always"
# # ports:
# # - "5053:53/tcp"
# # - "5053:53/udp"
# environment:
# NEXTDNS_PROFILE: ${NEXTDNS_PROFILE}
# NEXTDNS_CACHE_SIZE: "10m"
# NEXTDNS_REPORT_CLIENT_INFO: "true"
# NEXTDNS_LISTEN: ${NEXTDNS_LISTEN}
# networks:
# networks_vlan_30:
# ipv4_address: ${QUANTUM_DNS_IP_ADDRESS}
# # Warning: This WILL use your DNS query quota. Since its TTL is 300s,
# # each check will be 1 query against your quota every 5 minutes. Enable carefully.
# healthcheck:
# test: [
# "CMD", "sh", "-c",
# "dig +time=10 @127.0.0.1 -p $$(echo $${NEXTDNS_LISTEN:-:53} | rev | cut -d: -f1 | rev) probe-test.dns.nextdns.io"
# ]
# interval: "30s"
# timeout: "10s"
# retries: 1
# start_period: "5s"
# labels:
# - autoheal=true
# # - homepage.group=DNS
# # - homepage.icon=nextdns.png
# # - homepage.description=NextDNS
# # - homepage.href=https://my.nextdns.com
# # - homepage.widget.type=nextdns
# # - homepage.widget.key=${NEXTDNS_APIKEY}
# # - homepage.widget.profile=${NEXTDNS_PROFILE_ID}
# pihole:
# container_name: pihole-${QUANTUM_VLAN_NAME}
# hostname: pihole-${QUANTUM_VLAN_NAME}
# image: pihole/pihole:dev
# environment:
# TZ: ${TZ}
# WEBPASSWORD: ${PIHOLE_WEBPASSWORD}
# PIHOLE_DNS_: nextdns#53 #dns-upstream#${TUNNEL_DNS_PORT};127.0.0.1#5053;8.8.8.8;8.8.4.4;upstream0;upstream1
# # Listen on all interfaces and permit all origins
# # This allows Pihole to work in this setup and when answering across VLANS,
# # but do not expose pi-hole to the internet!
# DNSMASQ_LISTENING: local #all
# DNS_BOGUS_PRIV: true
# DNS_FQDN_REQUIRED: true
# DHCP_ACTIVE: ${DHCP_ACTIVE}
# DHCP_START: 10.100.${QUANTUM_VLAN_ID}.${DHCP_START_OCTET:-201}
# DHCP_END: 10.100.${QUANTUM_VLAN_ID}.${DHCP_END_OCTET:-251}
# DHCP_ROUTER: ${QUANTUM_GATEWAY}
# PIHOLE_DOMAIN: ${DOMAIN}
# DHCP_LEASETIME: 24
# WEBTHEME: default-auto
# # Volumes store your data between container upgrades
# volumes:
# - ${DATA_STORAGE}/pihole/${QUANTUM_VLAN_NAME}/pihole:/etc/pihole
# - ${DATA_STORAGE}/pihole/${QUANTUM_VLAN_NAME}/dnsmasq.d:/etc/dnsmasq.d
# - ${DATA_STORAGE}/pihole/global/custom.list:/etc/pihole/custom.list
# # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# cap_add:
# - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
# networks:
# networks_vlan_30:
# ipv4_address: ${QUANTUM_DNS_IP_ADDRESS}
# dns:
# - 127.0.0.1
# restart: unless-stopped
# depends_on:
# - dns-upstream
# - nextdns
# labels:
# - homepage.group=DNS
# - homepage.weight=1
# - homepage.name=Pihole-quantum
# - homepage.icon=pi-hole.png
# - homepage.href=http://${QUANTUM_DNS_IP_ADDRESS}/admin
# - homepage.description=for ${QUANTUM_VLAN_NAME}
# - homepage.widget.type=pihole
# - homepage.widget.key=${PIHOLE_TOKEN}
# - homepage.widget.url=http://${QUANTUM_DNS_IP_ADDRESS}
# # - homepage.widget.fields=["queries", "blocked", "gravity"]
# tailscale:
# container_name: tailscale-quantum
# hostname: tailscale-quantum
# image: tailscale/tailscale:stable
# restart: "always"
# # cap_add:
# # - NET_ADMIN # Used for configuring a network
# # - NET_RAW # Used for accessing privileged socket operations
# environment:
# TS_AUTHKEY: ${TAILSCALE_AUTHKEY}
# TS_EXTRA_ARGS: --advertise-exit-node --accept-dns=false --advertise-tags=${TAILSCALE_ADVERTISE_TAGS}
# TS_ROUTES: ${TAILSCALE_ROUTES}
# volumes:
# - ${DATA_STORAGE}/tailscale:/var/lib
# networks:
# networks_vlan_30:
# dns:
# ${QUANTUM_DNS_IP_ADDRESS}
# depends_on:
# - nextdns