Skip to content

Conversation

dwarf-king-hreidmar
Copy link

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.

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.
@EvilPingu
Copy link

EvilPingu commented Jul 23, 2025

I'm running ntfy with this configuration

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ntfy
  namespace: ntfy
spec:
  selector:
    matchLabels:
      app: ntfy
  template:
    metadata:
      labels:
        app: ntfy
    spec:
      containers:
        - name: ntfy
          image: binwiederhier/ntfy:v2.12.0
          imagePullPolicy: IfNotPresent
          args: ["serve"]
          resources:
            limits:
              memory: "64Mi"
              cpu: "500m"
            requests:
              memory: "32Mi"
              cpu: "100m"
          ports:
            - containerPort: 80
              name: http
          volumeMounts:
            - name: config
              mountPath: "/etc/ntfy"
              readOnly: true
      volumes:
        - name: config
          configMap:
            name: ntfy

Works so far. No problems with the command

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

Successfully merging this pull request may close these issues.

2 participants