From 109ee80c3696fddabd4cfdc8c944afdfdcc6e13a Mon Sep 17 00:00:00 2001 From: dwarf-king-hreidmar <45319558+dwarf-king-hreidmar@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:28:25 +0000 Subject: [PATCH 1/2] update command when runnig from docker I'm not sure if this is outdated across the board but I found I had to run command: ["ntfy","serve"] when using the docker image. I run ntfy from a k8s cluster with the following config: ``` spec: containers: - image: binwiederhier/ntfy imagePullPolicy: IfNotPresent name: ntfy command: ["ntfy", "serve"] envFrom: - configMapRef: name: ntfy ports: - containerPort: 80 name: http protocol: TCP volumeMounts: - mountPath: /var/lib/ntfy name: ntfy volumes: - name: ntfy persistentVolumeClaim: claimName: ntfy ``` happy to expand on the docs or standardize the command across all examples if need be. --- docs/install.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/install.md b/docs/install.md index 0c823571..5bc27329 100644 --- a/docs/install.md +++ b/docs/install.md @@ -287,6 +287,7 @@ services: image: binwiederhier/ntfy container_name: ntfy command: + - ntfy - serve environment: - TZ=UTC # optional: set desired timezone From c358263a20abd0984d52224b45dab57374a9db9c Mon Sep 17 00:00:00 2001 From: dwarf-king-hreidmar <45319558+dwarf-king-hreidmar@users.noreply.github.com> Date: Wed, 24 Jul 2024 05:37:28 +0000 Subject: [PATCH 2/2] Update install.md --- docs/install.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/install.md b/docs/install.md index 5bc27329..8be690cd 100644 --- a/docs/install.md +++ b/docs/install.md @@ -341,7 +341,7 @@ unmanned pod. containers: - name: ntfy image: binwiederhier/ntfy - args: ["serve"] + args: ["ntfy", "serve"] resources: limits: memory: "128Mi" @@ -390,7 +390,7 @@ unmanned pod. containers: - name: ntfy image: binwiederhier/ntfy - args: ["serve", "--cache-file", "/var/cache/ntfy/cache.db"] + args: ["ntfy", "serve", "--cache-file", "/var/cache/ntfy/cache.db"] ports: - containerPort: 80 name: http @@ -425,7 +425,7 @@ unmanned pod. containers: - name: ntfy image: binwiederhier/ntfy - args: ["serve"] + args: ["ntfy", "serve"] resources: limits: memory: "128Mi" @@ -520,7 +520,7 @@ kubectl apply -k /ntfy containers: - name: ntfy image: binwiederhier/ntfy:v1.28.0 # set deployed version - args: ["serve"] + args: ["ntfy", "serve"] env: #example of adjustments made in environmental variables - name: TZ # set timezone value: XXXXXXX