Dernière activité 1705433067

Photon for Lemmy pod + systemd

Jarno Rankinen a révisé ce gist 1703483803. Aller à la révision

2 files changed, 34 insertions

photon.yaml(fichier créé)

@@ -0,0 +1,21 @@
1 + apiVersion: v1
2 + kind: Pod
3 + metadata:
4 + labels:
5 + app: photon
6 + name: photon
7 + spec:
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(fichier créé)

@@ -0,0 +1,13 @@
1 + [Unit]
2 + Description=Podman pod - Photon for Lemmy
3 + After=network-online.target
4 +
5 + [Service]
6 + Type=forking
7 + Restart=on-failure
8 + RestartSec=30
9 + ExecStart=podman play kube /path/to/photon.yaml --replace
10 + ExecStop=podman play kube --down /path/to/photon.yaml
11 +
12 + [Install]
13 + WantedBy=default.target
Plus récent Plus ancien