Synology: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
== '''<u>Docker Pi-Hole ''' == | == '''<u>Docker Pi-Hole ''' == | ||
'''<u>SSH NAS</u>'''<syntaxhighlight lang="text" line="1"> | |||
'''<u>SSH NAS</u>''' | |||
<syntaxhighlight line="1"> | |||
docker network create \ | docker network create \ | ||
--driver macvlan \ | --driver macvlan \ | ||
--subnet=192.168.50.0/24 \ | --subnet=192.168.50.0/24 \ | ||
--gateway=192.168.50. | --gateway=192.168.50.1 \ | ||
--opt parent=ovs_eth2 vlan50 | --opt parent=ovs_eth2 vlan50 | ||
</syntaxhighlight> | </syntaxhighlight>yaml<syntaxhighlight lang="yaml" line="1"> | ||
services: | services: | ||
pihole: | pihole: | ||
Line 54: | Line 47: | ||
name: "XXXX" #CHANGE_TO_YOUR_Name_Line_22 | name: "XXXX" #CHANGE_TO_YOUR_Name_Line_22 | ||
external: true | external: true | ||
</syntaxhighlight> | </syntaxhighlight>Network | ||
[[File:Pi-hole network .png| | [[File:Pi-hole network .png|none|thumb]] |
Latest revision as of 14:04, 16 January 2025
Visual Editor
After installing MediaWiki the "Visual Editor" error, after a long debug and search just enable zlib.
Docker Pi-Hole
SSH NAS
docker network create \
--driver macvlan \
--subnet=192.168.50.0/24 \
--gateway=192.168.50.1 \
--opt parent=ovs_eth2 vlan50
yaml
services:
pihole:
image: pihole/pihole:latest
container_name: pihole-macvlan
cap_add:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
environment:
- PIHOLE_UID=xxxx #CHANGE_TO_YOUR_UID
- PIHOLE_GID=xxxx #CHANGE_TO_YOUR_GID
- TZ=Europe/Amsterdam #CHANGE_TO_YOUR_TZ
- WEBPASSWORD=xxxx #CHANGE_TO_YOUR_Password
- DNSMASQ_LISTENING=local
- WEB_PORT=8000
- DNSMASQ_USER=pihole
- FTLCONF_LOCAL_IPV4=xxx.xxx.xxx.xxx #CHANGE_TO_YOUR_IP
volumes:
- /volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d
- /volume1/docker/pihole/pihole:/etc/pihole
networks:
vlan50: #CHANGE_TO_YOUR_NetworkName
ipv4_address: xxx.xxx.xxx.xxx #CHANGE_TO_YOUR_IP
restart: always
networks:
vlan50:
name: "XXXX" #CHANGE_TO_YOUR_Name_Line_22
external: true
Network