binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.55k stars 730 forks source link

update command when runnig from docker #1158

Open dwarf-king-hreidmar opened 4 months ago

dwarf-king-hreidmar commented 4 months ago

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.