-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Predefined service: Pi-hole (#199) * Init service template for Pi-hole * Fix yml file for Pi-hole * Add cap_add to service validator * Skip Pi-hole service template test Co-authored-by: Marc Auberer <marc.auberer@chillibits.com> * Improve Pi-hole template * Add Pi-hole to supported services * Fix bug with volumes * Fix wording of volume question Co-authored-by: Splines <37160523+Splines@users.noreply.github.com>
- Loading branch information
1 parent
0981938
commit 918834c
Showing
7 changed files
with
103 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,8 @@ | |
'command': { | ||
'type': 'string' | ||
}, | ||
'cap_add': { | ||
'type': 'list', | ||
'nullable': True | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Pi-hole | ||
[Pi-hole](https://pi-hole.net/) is a network-wide tracking and ad blocking tool. It can be installed on embedded systems like the Raspberry Pi acting as a DNS server in your home network. It also comes with its own DHCP server. | ||
|
||
### Setup | ||
Pi-hole is considered as backend service and can therefore be found in backends collection, when generating the compose configuration with Compose Generator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"label": "Pi-hole", | ||
"preselected": "false", | ||
"proxied": false, | ||
"files": [ | ||
{ | ||
"path": "service.yml", | ||
"type": "service" | ||
}, | ||
{ | ||
"path": "README.md", | ||
"type": "docs" | ||
} | ||
], | ||
"questions": [ | ||
{ | ||
"text": "On which timezone do you want to set your Pi-hole?", | ||
"type": 2, | ||
"defaultValue": "America/Chicago", | ||
"variable": "PI_HOLE_TZ" | ||
}, | ||
{ | ||
"text": "Which version of Pi-hole do you want to use?", | ||
"type": 2, | ||
"defaultValue": "latest", | ||
"variable": "PI_HOLE_VERSION" | ||
} | ||
], | ||
"volumes": [ | ||
{ | ||
"text": "Custom path for Pi-hole data volume?", | ||
"defaultValue": "./volumes/pi-hole-data/etc-pihole", | ||
"variable": "VOLUME_PI_HOLE_DATA_ETC", | ||
"advanced": true | ||
}, | ||
{ | ||
"text": "Custom path for Pi-hole dnsmasq config volume?", | ||
"defaultValue": "./volumes/pi-hole-data/etc-dnsmasq.d", | ||
"variable": "VOLUME_PI_HOLE_DATA_DNSMASQ", | ||
"advanced": true | ||
} | ||
], | ||
"secrets": [ | ||
{ | ||
"name": "Pi-hole password for web interface", | ||
"variable": "_PW_PI_HOLE_WEB_INTERFACE", | ||
"length": 50 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TZ=${{PI_HOLE_TZ}} | ||
WEBPASSWORD=${{_PW_PI_HOLE_WEB_INTERFACE}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
container_name: ${{PROJECT_NAME_CONTAINER}}-backend-pihole | ||
image: pihole/pihole:${{PI_HOLE_VERSION}} | ||
restart: always | ||
ports: | ||
- 53:53/tcp | ||
- 53:53/udp | ||
- 67:67/udp | ||
- 80:80/tcp | ||
env_file: | ||
- environment.env | ||
volumes: | ||
- ${{VOLUME_PI_HOLE_DATA_ETC}}:/etc/pihole/ | ||
- ${{VOLUME_PI_HOLE_DATA_DNSMASQ}}:/etc/dnsmasq.d/ | ||
cap_add: | ||
- NET_ADMIN |