Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file server.yml do not exists [Docker] #361

Closed
barart opened this issue Jul 10, 2022 · 2 comments
Closed

file server.yml do not exists [Docker] #361

barart opened this issue Jul 10, 2022 · 2 comments

Comments

@barart
Copy link

barart commented Jul 10, 2022

Hello, after create the docker container with default values and volumes mapped to /etc/ntfy and /var/cache/ntfy there are neither /var/cache/ntfy/cache.db or /etc/ntfy/server.yml files

The only way that the cache.db file is created is if i specify it with --cache-file /var/cache/ntfy/cache.db option but the server.yml is not created

Do i need to manually create the server.yml file? (i could not find this on docs)
Does the cache.db file is not created by default when the volume is mapped and it is only created with the --cache-file option?

@binwiederhier
Copy link
Owner

binwiederhier commented Jul 10, 2022

For docker you need to manually create the server.yml file. One you specify cache-file in the config it'll be created just like when you pass the command line arg.

At the top of the config guide (https://ntfy.sh/docs/config/) you can find a link to the skeleton server.yml file.

This is not the first time somebody asked, so maybe we should update the docker docs.

@binwiederhier
Copy link
Owner

I added this info box at the top of the Docker install instructions. Hope that makes it clearer.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants