[GH-ISSUE #1013] Config file not their #711

Closed
opened 2026-05-07 00:26:48 +02:00 by BreizhHardware · 1 comment

Originally created by @216321 on GitHub (Jan 29, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1013

🐞 Describe the bug
The Docker-compose file did not make the Config file (server.yml)

💻 Components impacted
ROC-RK3328-CC

💡 Screenshots and/or logs
Their is no files in /etc/ntfy

🔮 Additional context
Hear is my compose file

version: "2.8"

services:
ntfy:
image: binwiederhier/ntfy
container_name: ntfy
command:
- serve
environment:
- TZ=ET # 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
ports:
- 80:80
healthcheck: # optional: remember to adapt the host:port to your environment
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '"healthy"\s*:\s*true' || exit 1"]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped

Originally created by @216321 on GitHub (Jan 29, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1013 :lady_beetle: **Describe the bug** The Docker-compose file did not make the Config file (server.yml) :computer: **Components impacted** ROC-RK3328-CC :bulb: **Screenshots and/or logs** Their is no files in /etc/ntfy :crystal_ball: **Additional context** Hear is my compose file version: "2.8" services: ntfy: image: binwiederhier/ntfy container_name: ntfy command: - serve environment: - TZ=ET # 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 ports: - 80:80 healthcheck: # optional: remember to adapt the host:port to your environment test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] interval: 60s timeout: 10s retries: 3 start_period: 40s restart: unless-stopped
BreizhHardware 2026-05-07 00:26:48 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@wunter8 commented on GitHub (Jan 29, 2024):

As highlighted in the "Info" box here, server.yml is not included by default: https://docs.ntfy.sh/install/#docker

Also, I'd recommend using env variables to configure ntfy in Docker instead of server.yml. See an example here: https://docs.ntfy.sh/config/#__tabbed_2_1

<!-- gh-comment-id:1915218410 --> @wunter8 commented on GitHub (Jan 29, 2024): As highlighted in the "Info" box here, server.yml is not included by default: https://docs.ntfy.sh/install/#docker Also, I'd recommend using env variables to configure ntfy in Docker instead of server.yml. See an example here: https://docs.ntfy.sh/config/#__tabbed_2_1
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#711
No description provided.