[GH-ISSUE #361] file server.yml do not exists [Docker] #280

Closed
opened 2026-05-07 00:22:35 +02:00 by BreizhHardware · 2 comments

Originally created by @barart on GitHub (Jul 10, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/361

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?

Originally created by @barart on GitHub (Jul 10, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/361 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?
Author
Owner

@binwiederhier commented on GitHub (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.

<!-- gh-comment-id:1179788426 --> @binwiederhier commented on GitHub (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.
Author
Owner

@binwiederhier commented on GitHub (Sep 3, 2022):

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

image

<!-- gh-comment-id:1236184559 --> @binwiederhier commented on GitHub (Sep 3, 2022): I added this info box at the top of the Docker install instructions. Hope that makes it clearer. ![image](https://user-images.githubusercontent.com/664597/188284945-bad82208-e635-486b-87b7-c3972d764ed4.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#280
No description provided.