feat(docker-compose): Add autoloading for compose file (#1958)

* feat(docker-compose): Add autoloading for compose file

* hmm

* hmm2

* longer delay for startup probe
This commit is contained in:
Kjeld Schouten-Lebbing
2022-02-24 20:53:22 +01:00
committed by GitHub
parent 6107728928
commit c8b99af1a9
3 changed files with 36 additions and 24 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ name: docker-compose
sources:
- https://github.com/Jackett/Jackett
type: application
version: 0.0.2
version: 0.0.3
annotations:
truecharts.org/catagories: |
- docker
+7 -23
View File
@@ -1,28 +1,7 @@
# Include{groups}
portals:
open:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
portals: {}
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: controller
@@ -84,6 +63,11 @@ questions:
type: dict
attrs:
# Include{fixedEnv}
- variable: COMPOSE_FILE
label: "COMPOSE_FILE"
description: "Path on the host of the composefile you want to load. Supported are paths inside /mnt, /root and /cluster"
schema:
type: string
# Include{containerConfig}
+28
View File
@@ -47,6 +47,27 @@ service:
env:
DOCKER_TLS_CERTDIR: "/certs"
COMPOSE_FILE: ""
lifecycle:
postStart:
exec:
command:
- "/bin/sh"
- "-c"
- 'sleep 20 && if [ ${COMPOSE_FILE} ]; then docker-compose up -d -f ${COMPOSE_FILE} && echo "Loading COMPOSE_FILE at location ${COMPOSE_FILE}"; else echo "COMPOSE_FILE not set, not auto-loading compose-file"; fi'
probes:
liveness:
spec:
initialDelaySeconds: 30
readiness:
spec:
initialDelaySeconds: 30
startup:
spec:
initialDelaySeconds: 30
persistence:
varrun:
@@ -65,6 +86,13 @@ persistence:
mountPath: /root
hostPathType: ""
readOnly: false
cluster:
enabled: true
type: hostPath
hostPath: /cluster
mountPath: /cluster
hostPathType: ""
readOnly: false
docker-certs-ca:
enabled: true
mountPath: "/config"