mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-16 11:33:43 +03:00
feat: add semaphore to the stack (#10)
This commit is contained in:
parent
27ee316ca6
commit
5b5fbd6a56
|
@ -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
|
||||
|
|
|
@ -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
9
semaphore/Containerfile
Normal 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"
|
Loading…
Reference in a new issue