add breezewiki configuration (kubernetes YAML and docker-compose)

This commit is contained in:
root 2025-02-27 14:19:46 -03:00
parent ced5131fc8
commit bdb81c85ed
3 changed files with 62 additions and 0 deletions

47
breezewiki/breezewiki.yml Normal file
View file

@ -0,0 +1,47 @@
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-5.4.0
# NOTE: If you generated this yaml from an unprivileged and rootless podman container on an SELinux
# enabled system, check the podman generate kube man page for steps to follow to ensure that your pod/container
# has the right permissions to access the volumes added.
apiVersion: v1
kind: ConfigMap
metadata:
name: breezewiki-config
data:
config.ini: |
canonical_origin = "breezewiki.nadeko.net"
debug = false
port = 10416
strict_proxy = true
---
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2025-02-27T16:49:02Z"
labels:
app: breezewiki-pod
name: breezewiki-pod
spec:
volumes:
- name: config
configMap:
name: breezewiki-config
containers:
- image: quay.io/pussthecatorg/breezewiki:latest
name: breezewiki
ports:
- containerPort: 10416
hostIP: 127.0.0.1
hostPort: 10007
resources:
limits:
memory: 512Mi
volumeMounts:
- mountPath: /app/config.ini
subPath: config.ini
name: config
restartPolicy: Always

4
breezewiki/config.ini Normal file
View file

@ -0,0 +1,4 @@
canonical_origin = "breezewiki.nadeko.net"
debug = false
port = 10416
strict_proxy = true

View file

@ -0,0 +1,11 @@
services:
breezewiki:
container_name: breezewiki
image: quay.io/pussthecatorg/breezewiki:latest
restart: always
mem_limit: 512mb
ports:
- "127.0.0.1:10007:10416" # Replace with "10416:10416" if you don't use a reverse proxy
volumes:
- "./config.ini:/app/config.ini"