mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-21 16:33:48 +01:00
Add info on how to use a custom resolver
This commit is contained in:
parent
e791e49468
commit
97a407b3bf
34
docs/custom-dns.md
Normal file
34
docs/custom-dns.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# How to resolve Domains to custom IPs by using dnsmasq on the host
|
||||||
|
|
||||||
|
First edit /etc/hosts and add your overrides.
|
||||||
|
|
||||||
|
Then run the following commands (Arch Linux) to install, enable and start dnsmasq
|
||||||
|
|
||||||
|
```
|
||||||
|
# pacman -S dnsmasq
|
||||||
|
# systemctl enable dnsmasq
|
||||||
|
# systemctl start dnsmasq
|
||||||
|
```
|
||||||
|
|
||||||
|
Uncomment or add the following config to your docker-compose.yml web service section (172.17.0.1 is the docker default network IP):
|
||||||
|
|
||||||
|
```
|
||||||
|
dns:
|
||||||
|
- 172.17.0.1
|
||||||
|
```
|
||||||
|
|
||||||
|
After changing /etc/hosts you can do
|
||||||
|
|
||||||
|
```
|
||||||
|
# systemctl restart dnsmasq
|
||||||
|
```
|
||||||
|
|
||||||
|
# How to use a different resolver
|
||||||
|
|
||||||
|
Uncomment or add the following config to your docker-compose.yml web service section (172.17.0.1 is the docker default network IP):
|
||||||
|
|
||||||
|
```
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
|
- 1.0.0.1
|
||||||
|
```
|
@ -25,6 +25,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./files:/trashposs/files
|
- ./files:/trashposs/files
|
||||||
- ./.config:/trashposs/.config:ro
|
- ./.config:/trashposs/.config:ro
|
||||||
|
# Uncomment this to use a DNS server on the host machine or specify a custom one
|
||||||
|
# (172.17.0.1 is the IP of the default network bridge)
|
||||||
|
# dns:
|
||||||
|
# - 172.17.0.1
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user