Skip to content

Commit

Permalink
pihole: fix perms (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k authored Sep 2, 2024
1 parent a8d5f1a commit 4175644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ix-dev/stable/pihole/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ sources:
- https://github.com/truenas/charts/tree/master/charts/pihole
title: Pi-hole
train: stable
version: 1.1.2
version: 1.1.3
3 changes: 2 additions & 1 deletion ix-dev/stable/pihole/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{# Containers #}
services:
{{ values.consts.pihole_container_name }}:
user: "0:0"
image: {{ ix_lib.base.utils.get_image(images=values.images, name="image") }}
restart: unless-stopped
deploy:
Expand All @@ -33,7 +34,7 @@ services:
{% set caps = ix_lib.base.security.get_caps(add=["NET_ADMIN","NET_RAW","NET_BIND_SERVICE","CHOWN","DAC_OVERRIDE","FOWNER","SETGID","SETUID","SETFCAP","SETPCAP","KILL","SYS_NICE"]) %}
cap_add: {{ caps.add | tojson }}
cap_drop: {{ caps.drop | tojson }}
security_opt: {{ ix_lib.base.security.get_sec_opts() | tojson }}
security_opt: {{ ix_lib.base.security.get_sec_opts(remove=["no-new-privileges"]) | tojson }}
{% if values.network.dns_opts %}
dns_opt: {{ ix_lib.base.network.dns_opts(values.network.dns_opts) | tojson }}
{% endif %}
Expand Down

0 comments on commit 4175644

Please sign in to comment.