Skip to content
Snippets Groups Projects
Unverified Commit d65ca9b1 authored by Philipp C. Heckel's avatar Philipp C. Heckel Committed by GitHub
Browse files

Merge pull request #307 from ksurl/docs-timezone

add timezone for docker install
parents 887a7c32 ae3163c5
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,7 @@ MAINTAINER Philipp C. Heckel <philipp.heckel@gmail.com>
COPY ntfy /usr/bin
RUN apk add --no-cache tzdata
EXPOSE 80/tcp
ENTRYPOINT ["ntfy"]
......@@ -5,7 +5,9 @@ services:
container_name: ntfy
command:
- serve
user: UID:GID # optional. Set custom user/group or uid/gid
environment:
- TZ=UTC # optional: Change to your desired timezone
user: UID:GID # optional: Set custom user/group or uid/gid
volumes:
- /var/cache/ntfy:/var/cache/ntfy
- /etc/ntfy:/etc/ntfy
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment