You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`-e LOG_FILE=true` if you prefer the duckdns log to be written to a file instead of the docker log
69
-
`-v <path to data>:/config` used in conjunction with logging to file
70
71
71
72
### docker-compose
72
73
@@ -80,9 +81,14 @@ services:
80
81
image: linuxserver/duckdns
81
82
container_name: duckdns
82
83
environment:
84
+
- PUID=1001 #optional
85
+
- PGID=1001 #optional
83
86
- TZ=Europe/London
84
87
- SUBDOMAINS=subdomain1,subdomain2
85
88
- TOKEN=token
89
+
- LOG_FILE=false #optional
90
+
volumes:
91
+
- </path/to/appdata/config>:/config #optional
86
92
mem_limit: 4096m
87
93
restart: unless-stopped
88
94
```
@@ -93,10 +99,28 @@ Container images are configured using parameters passed at runtime (such as thos
93
99
94
100
| Parameter | Function |
95
101
| :----: | --- |
102
+
|`-e PUID=1001`| for UserID - see below for explanation |
103
+
|`-e PGID=1001`| for GroupID - see below for explanation |
96
104
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London |
97
105
|`-e SUBDOMAINS=subdomain1,subdomain2`| multiple subdomains allowed, comma separated, no spaces |
98
106
|`-e TOKEN=token`| DuckDNS token |
107
+
|`-e LOG_FILE=false`| Set to `true` to log to file (also need to map /config). |
108
+
|`-v /config`| Used in conjunction with logging to file. |
99
109
110
+
## User / Group Identifiers
111
+
112
+
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
113
+
114
+
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
115
+
116
+
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
0 commit comments