Skip to content

Commit a40496f

Browse files
committed
clean up various port exposures
configure dnsmasq to load hosts files from /opt/lib/dnsmasq/hosts.d and /opt/lib/dnsmasq/autohosts.d
1 parent c2a6311 commit a40496f

9 files changed

Lines changed: 27 additions & 33 deletions

File tree

comfy-ui/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ services:
88
- proxy
99
volumes:
1010
- ../../lib/comfy-ui:/storage
11-
ports:
12-
- 8188:8188
11+
# ports:
12+
# - 8188:8188
1313
env_file:
1414
- .env
1515
deploy:

dnsmasq/conf/dnsmasq.conf-example

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
# this should be the IP address of the interface we want to accept queries
22
# finding that 0.0.0.0 does not work
3-
listen-address=EXTERNAL INTERFACE IP ADDRESS
3+
listen-address=192.168.13.2
44

55
log-queries
66
domain-needed
77
bogus-priv
88
no-resolv
99
filterwin2k
1010

11-
# Use this if you want to use a bogus local domain
12-
# this way you can address hosts as "esphome.ctrlh"
1311
domain=ctrlh
14-
local=/ctrlh/
15-
no-hosts
1612
expand-hosts
13+
no-hosts
14+
local=/ctrlh/
1715

18-
# disable lookup caching at the expense of increased network traffic and latency
19-
local-ttl=0
20-
max-cache-ttl=0
16+
local-ttl=5
17+
max-cache-ttl=5
2118

19+
# add individual hostnames to /opt/lib/dnsmasq/hosts.d, which is mapped to /etc/hosts.d
2220
hostsdir=/etc/hosts.d
21+
# hostname directory for automatically generated host files
22+
hostsdir=/etc/autohosts.d
2323

24-
# you can add individual hostnames if you want
25-
# address=/DOMAIN.NAME/IP.ADD.RE.SS
26-
27-
# chain queries to other internal DNS servers using the hackstack
2824
server=/corginium.ctrlh/192.168.13.11
2925

30-
# default DNS server
31-
# 9.9.9.9 is considered more private than Google (8.8.8.8) or Cloudflare (1.1.1.1)
32-
# you may prefer to use your router so that it can resolve local names
26+
# fall back to the router (UDM Pro)
27+
# this gives it the opportunity to service requests for
28+
# names it's configured for
3329
server=192.168.13.1

dnsmasq/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ services:
77
network_mode: host
88
volumes:
99
- ./conf/dnsmasq.conf:/etc/dnsmasq.conf
10-
- ./conf/hosts.d:/etc/hosts.d
10+
- ../../lib/dnsmasq/hosts.d:/etc/hosts.d
11+
- ../../lib/dnsmasq/autohosts.d:/etc/autohosts.d
1112
# ports:
1213
# - "53:53/udp"
1314
labels:

esphome/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ services:
1111
networks:
1212
- proxy
1313
- mdns-net
14-
ports:
15-
- 6052:6052
14+
# ports:
15+
# - 6052:6052
1616
env_file:
1717
- .env
1818
networks:

frigate/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
networks:
3131
default:
3232
name: frigate-net
33-
driver: bridge
33+
# driver: bridge
3434
proxy:
3535
external: true
3636
name: nginx-proxy-net

glances/docker-compose.gpu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ services:
1313
- ./glances.conf:/glances/conf/glances.conf
1414
- ./glances.pwd:/root/.config/glances/glances.pwd:ro
1515
- /etc/os-release:/etc/os-release:ro
16-
ports:
17-
- 61208:61208
16+
# ports:
17+
# - 61208:61208
1818
env_file:
1919
- .env
2020
deploy:

glances/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ services:
1313
- ./glances.conf:/glances/conf/glances.conf
1414
- ./glances.pwd:/root/.config/glances/glances.pwd:ro
1515
- /etc/os-release:/etc/os-release:ro
16-
ports:
17-
- 61208:61208
16+
# ports:
17+
# - 61208:61208
1818
env_file:
1919
- .env
2020
networks:

partdb/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ services:
44
container_name: partdb
55
hostname: partdb
66
restart: unless-stopped
7-
ports:
8-
- '28080:80'
7+
# ports:
8+
# - 28080:80
99
networks:
1010
- proxy
1111
- database

zigbee2mqtt/docker-compose.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ services:
1010
volumes:
1111
- ./data:/app/data
1212
- /run/udev:/run/udev:ro
13-
ports:
14-
- 8080:8080
13+
# ports:
14+
# - 8080:8080
1515
env_file:
1616
- .env
1717
networks:
18-
- default
19-
- proxy
18+
- proxy
2019
- mqtt
2120
networks:
22-
default:
23-
driver: bridge
2421
proxy:
2522
name: nginx-proxy-net
2623
external: true

0 commit comments

Comments
 (0)