mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-05-08 09:48:31 +01:00
change UID / GID for www-data and pihole user.
When mounting volumes, specific rights may be needed to write on mounted volumes on the host. Signed-off-by: edgd1er <edgd1er@hotmail.com>
This commit is contained in:
@@ -26,6 +26,10 @@ services:
|
||||
- "80:80/tcp"
|
||||
environment:
|
||||
TZ: 'America/Chicago'
|
||||
WEB_UID: '1001'
|
||||
WEB_GID: '1000'
|
||||
PIHOLE_UID: '1001'
|
||||
PIHOLE_GID: '1000'
|
||||
# WEBPASSWORD: 'set a secure password here or it will be random'
|
||||
# Volumes store your data between container upgrades
|
||||
volumes:
|
||||
@@ -128,6 +132,10 @@ There are other environment variables if you want to customize various things in
|
||||
| `CORS_HOSTS` | unset | `<FQDNs delimited by ,>` | List of domains/subdomains on which CORS is allowed. Wildcards are not supported. Eg: `CORS_HOSTS: domain.com,home.domain.com,www.domain.com`.
|
||||
| `CUSTOM_CACHE_SIZE` | `10000` | Number | Set the cache size for dnsmasq. Useful for increasing the default cache size or to set it to 0. Note that when `DNSSEC` is "true", then this setting is ignored.
|
||||
| `FTLCONF_[SETTING]` | unset | As per documentation | Customize pihole-FTL.conf with settings described in the [FTLDNS Configuration page](https://docs.pi-hole.net/ftldns/configfile/). For example, to customize REPLY_ADDR6, ensure you have the `FTLCONF_REPLY_ADDR6` environment variable set.
|
||||
| PIHOLE_UID | debian system value | Number | Overrides image's default pihole user id to match a host user id |
|
||||
| PIHOLE_GID | debian system value | Number | Overrides image's default pihole group id to match a host group id |
|
||||
| WEB_UID | debian system value | Number | Overrides image's default www-data user id to match a host user id |
|
||||
| WEB_GID | debian system value | Number | Overrides image's default www-data group id to match a host group id |
|
||||
|
||||
### Experimental Variables
|
||||
| Variable | Default | Value | Description |
|
||||
|
||||
Reference in New Issue
Block a user