[GH-ISSUE #624] Empty bind mounted directories and no server.yml? #465

Closed
opened 2026-05-07 00:24:26 +02:00 by BreizhHardware · 2 comments

Originally created by @DoTheEvo on GitHub (Feb 20, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/624

ntfy works and all is fine, but my bind mounted directories are empty, is it normal?

here is my docker-compose.yml
services:

  ntfy:
    image: binwiederhier/ntfy
    container_name: ntfy
    hostname: ntfy
    env_file: .env
    restart: unless-stopped
    command:
      - serve
    volumes:
      - ./ntfy_cache:/var/cache/ntfy
      - ./ntfy_etc:/etc/ntfy
    expose:
      - 80:80

networks:
  default:
    name: caddy_net
    external: true

I tried adding user: root just to see if its not permission issue, but no change.
I am kinda confused on this, as when I down it and recreate the stuff is there... but apparently its saved by browser and in another browser its not there.

Interesting, though something is not right about this if I would want to go with users and passwords

Originally created by @DoTheEvo on GitHub (Feb 20, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/624 ntfy works and all is fine, but my bind mounted directories are empty, is it normal? <details> <summary>here is my docker-compose.yml</summary> ```yml services: ntfy: image: binwiederhier/ntfy container_name: ntfy hostname: ntfy env_file: .env restart: unless-stopped command: - serve volumes: - ./ntfy_cache:/var/cache/ntfy - ./ntfy_etc:/etc/ntfy expose: - 80:80 networks: default: name: caddy_net external: true ``` </details> I tried adding `user: root` just to see if its not permission issue, but no change. I am kinda confused on this, as when I down it and recreate the stuff is there... but apparently its saved by browser and in another browser its not there. Interesting, though something is not right about this if I would want to go with users and passwords
BreizhHardware 2026-05-07 00:24:26 +02:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@binwiederhier commented on GitHub (Feb 20, 2023):

ntfy works and all is fine, but my bind mounted directories are empty, is it normal?

This is normal. The Docker instructions have a big fat "info" box that says that "Docker image does not contain a /etc/ntfy/server.yml file".

I am kinda confused on this, as when I down it and recreate the stuff is there... but apparently its saved by browser and in another browser its not there.

When you're not logged into the web app (you need enable-login: true to allow that), everything is stored in the browser storage. This is similar to the Android app, for which everything is stored on the device. The account sync feature will allow syncing between devices. That will come soon-ish.

<!-- gh-comment-id:1437555664 --> @binwiederhier commented on GitHub (Feb 20, 2023): > ntfy works and all is fine, but my bind mounted directories are empty, is it normal? This is normal. The [Docker instructions](https://docs.ntfy.sh/install/#docker) have a big fat "info" box that says that "Docker image does not contain a /etc/ntfy/server.yml file". > I am kinda confused on this, as when I down it and recreate the stuff is there... but apparently its saved by browser and in another browser its not there. When you're not logged into the web app (you need `enable-login: true` to allow that), everything is stored in the browser storage. This is similar to the Android app, for which everything is stored on the device. The account sync feature will allow syncing between devices. That will come soon-ish.
Author
Owner

@DoTheEvo commented on GitHub (Feb 20, 2023):

Thanks!

<!-- gh-comment-id:1437627514 --> @DoTheEvo commented on GitHub (Feb 20, 2023): Thanks!
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#465
No description provided.