feat: add semaphore to the stack (#10)

This commit is contained in:
Stephan Lüscher 2023-04-29 19:28:08 +00:00
parent 27ee316ca6
commit 5b5fbd6a56
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
3 changed files with 33 additions and 0 deletions

View file

@ -15,6 +15,10 @@ spec:
persistentVolumeClaim:
claimName: ublue-os_forge-registry
- name: ublue-os_forge-semaphore-pvc
persistentVolumeClaim:
claimName: ublue-os_forge-semaphore
containers:
- name: rvproxy.ublue.local
image: rvproxy
@ -46,6 +50,19 @@ spec:
- containerPort: 5000
protocol: TCP
- name: semaphore.ublue.local
image: semaphore
resources:
limits:
memory: 512Mi
cpu: 200m
volumeMounts:
- mountPath: /var/lib/semaphore
name: ublue-os_forge-semaphore-pvc
ports:
- containerPort: 3000
protocol: TCP
initContainers:
- name: minica.ublue.local
image: minica

View file

@ -21,6 +21,13 @@
}
}
# semaphore
@semaphore host forge.ublue.local
handle @semaphore {
reverse_proxy ublue-os_forge-semaphore.ublue.local:3000
}
# Fallback for otherwise unhandled domains
handle {
respond "Bad hostname" 400

9
semaphore/Containerfile Normal file
View file

@ -0,0 +1,9 @@
# Source Image
FROM docker.io/semaphoreui/semaphore:v2.8.90
# Environment variables
ENV SEMAPHORE_DB_DIALECT="bolt"
ENV SEMAPHORE_ADMIN_PASSWORD="ublue"
ENV SEMAPHORE_ADMIN_NAME="ublue"
ENV SEMAPHORE_ADMIN_EMAIL="forge@ublue.local"
ENV SEMAPHORE_ADMIN="ublue"