|
|
@@ -239,10 +239,11 @@ docker run \
|
|
|
serve
|
|
|
```
|
|
|
|
|
|
-With other config options and non-root user (configured via `/etc/ntfy/server.yml`, see [configuration](config.md) for details):
|
|
|
+With other config options, timezone, and non-root user (configured via `/etc/ntfy/server.yml`, see [configuration](config.md) for details):
|
|
|
```bash
|
|
|
docker run \
|
|
|
-v /etc/ntfy:/etc/ntfy \
|
|
|
+ -e TZ=UTC \
|
|
|
-p 80:80 \
|
|
|
-u UID:GID \
|
|
|
-it \
|
|
|
@@ -260,7 +261,9 @@ services:
|
|
|
container_name: ntfy
|
|
|
command:
|
|
|
- serve
|
|
|
- user: UID:GID # optional. replace with your own user/group or uid/gid
|
|
|
+ environment:
|
|
|
+ - TZ=UTC # optional: set desired timezone
|
|
|
+ user: UID:GID # optional: replace with your own user/group or uid/gid
|
|
|
volumes:
|
|
|
- /var/cache/ntfy:/var/cache/ntfy
|
|
|
- /etc/ntfy:/etc/ntfy
|