mirror of
https://github.com/Oliems/wg-pihole-docker.git
synced 2022-12-02 01:11:47 +03:00
Updated docker-compose and README
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
|
||||
## Configuring SSH
|
||||
|
||||
https://linux-audit.com/audit-and-harden-your-ssh-configuration/
|
||||
|
||||
- On your computer, go into you `.ssh` folder with `cd ~/.ssh`. If the folder does not exist create it using `mkdir ~/.ssh`.
|
||||
- Use `ssh-keygen -t rsa -b 4096` to generate a key pair. It is recommended that you name the key so that you can keep track of them.
|
||||
- You need to copy the public key you have just created to your server. To do that use `scp yourkey.pub username@serverip:`. Do not forget the `:` at the end.
|
||||
@@ -89,10 +87,16 @@ docker-compose --version
|
||||
|
||||
## Deploying wg-easy and docker-pi-hole
|
||||
|
||||
Modify docker-compose.yml to add your server's static IP and your passwords for the Wireguard and the Pi-hole WebUI's then from inside the `wg-pihole-docker` directory run `sudo docker-compose up -d`. You should now be able to access the Pi-hole WebUI at `yourserverip/admin` or at `pi.hole/admin` and the Wireguard WebUI at `yourserverip:51821`.
|
||||
|
||||
## Upgrading
|
||||
|
||||
In order to upgrade, just stop and delete the container you want to upgarde using `sudo docker stop` and `sudo docker rm` then run `sudo docker-compose up -d`.
|
||||
|
||||
## Changing the adlist
|
||||
|
||||
By default, Pi-hole uses [Stenven Black's hosts files](https://github.com/StevenBlack/hosts). To manage the adlists, on Pi-hole's admin page you can go to Group Management > Adlists then add or remove adlists as you see fit. Once you are done, go Setting and click on 'Restart DNS resolver' to apply the changes.
|
||||
|
||||
## Useful resources
|
||||
|
||||
- https://github.com/pi-hole/docker-pi-hole
|
||||
|
||||
@@ -13,14 +13,14 @@ services:
|
||||
environment:
|
||||
# Required:
|
||||
# Change this to your host's public address
|
||||
- WG_HOST: '0.0.0.0' # 🚨
|
||||
- WG_HOST=0.0.0.0 # 🚨
|
||||
# Optional:
|
||||
- PASSWORD: 'Set your password for the WebUI' # 🚨
|
||||
# - WG_PORT: '51820'
|
||||
# - WG_DEFAULT_ADDRESS: '10.8.0.x'
|
||||
- WG_DEFAULT_DNS: '172.28.0.2'
|
||||
# - WG_MTU: '1420'
|
||||
# - WG_ALLOWED_IPS: '192.168.15.0/24, 10.0.1.0/24'
|
||||
- PASSWORD=Set your password for the WebUI # 🚨
|
||||
# - WG_PORT=51820
|
||||
# - WG_DEFAULT_ADDRESS=10.8.0.x
|
||||
- WG_DEFAULT_DNS=172.28.0.2
|
||||
# - WG_MTU=1420
|
||||
# - WG_ALLOWED_IPS=192.168.15.0/24, 10.0.1.0/24
|
||||
volumes:
|
||||
- './etc-wireguard:/etc/wireguard'
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user