mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #865] Adding auth-file: "/var/lib/ntfy/user.db" auth-default-access: "read-write" in docker instance problems. #609
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#609
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaumudpa on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/865
Hi,
On a docker instance If we add
auth-file: "/var/lib/ntfy/user.db"auth-default-access: "read-write"to the server.yml file The docker instance fails to restart. and when these files are removed it works perfectly fine.
@avoinescu commented on GitHub (Sep 5, 2023):
The problem seems to be the
auth-file: "/var/lib/ntfy/user.db"
If I leave the second one the docker container starts. But can't get the auth part to work ^^
@wunter8 commented on GitHub (Sep 5, 2023):
It might be easier to solve this on Discord. But it seems like you're not correctly mounting the /var/lib/ntfy directory inside the Docker container. Or you might be mounting it but the user that is running the container may not have access to that directory. I'd need to know more about your setup
@kaumudpa commented on GitHub (Sep 5, 2023):
Its a simple docker instance spinned up via
docker-composeas found here https://docs.ntfy.sh/install/#docker@kaumudpa commented on GitHub (Sep 5, 2023):
As suggested by @wunter8 on discord.
When using Docker, it's easier to use environment variables to configure everything instead of server.yml. Here's an example docker-compose.yml file with some good default settings.
Working docker-compose config.
All credits to @wunter8 for this solution.