Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Ntfy_archive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Ntfy_archive
Commits
d65ca9b1
Unverified
Commit
d65ca9b1
authored
2 years ago
by
Philipp C. Heckel
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
docker-compose.yml
+3
-1
3 additions, 1 deletion
docker-compose.yml
docs/install.md
+5
-2
5 additions, 2 deletions
docs/install.md
with
10 additions
and
3 deletions
Dockerfile
+
2
−
0
View file @
d65ca9b1
...
...
@@ -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"]
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
1
View file @
d65ca9b1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
docs/install.md
+
5
−
2
View file @
d65ca9b1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment