mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-14 11:47:33 +00:00
add timezone for docker install
This commit is contained in:
parent
1e16899ae3
commit
f6dee345b7
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /var/cache/ntfy:/var/cache/ntfy
|
- /var/cache/ntfy:/var/cache/ntfy
|
||||||
- /etc/ntfy:/etc/ntfy
|
- /etc/ntfy:/etc/ntfy
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
@ -239,10 +239,11 @@ docker run \
|
||||||
serve
|
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, host-matched timezone, and non-root user (configured via `/etc/ntfy/server.yml`, see [configuration](config.md) for details):
|
||||||
```bash
|
```bash
|
||||||
docker run \
|
docker run \
|
||||||
-v /etc/ntfy:/etc/ntfy \
|
-v /etc/ntfy:/etc/ntfy \
|
||||||
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
-u UID:GID \
|
-u UID:GID \
|
||||||
-it \
|
-it \
|
||||||
|
@ -264,6 +265,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /var/cache/ntfy:/var/cache/ntfy
|
- /var/cache/ntfy:/var/cache/ntfy
|
||||||
- /etc/ntfy:/etc/ntfy
|
- /etc/ntfy:/etc/ntfy
|
||||||
|
- /etc/localtime:/etc/localtime:ro # set timezone to match host
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in a new issue