Last active 1705433067

Photon for Lemmy pod + systemd

photon.yaml Raw
1apiVersion: v1
2kind: Pod
3metadata:
4 labels:
5 app: photon
6 name: photon
7spec:
8 containers:
9 - args:
10 - npm
11 - run
12 - start
13 env:
14 - name: PUBLIC_INSTANCE_URL
15 value: sopuli.xyz
16 image: ghcr.io/xyphyn/photon:latest
17 name: app
18 ports:
19 - containerPort: 3000
20 hostPort: 8084
21 securityContext: {}
pod-photon.service Raw
1[Unit]
2Description=Podman pod - Photon for Lemmy
3After=network-online.target
4
5[Service]
6Type=forking
7Restart=on-failure
8RestartSec=30
9ExecStart=podman play kube /path/to/photon.yaml --replace
10ExecStop=podman play kube --down /path/to/photon.yaml
11
12[Install]
13WantedBy=default.target