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:
@@ -20,7 +20,7 @@ name: docker-compose
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Jackett/Jackett
|
- https://github.com/Jackett/Jackett
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.2
|
version: 0.0.3
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- docker
|
- docker
|
||||||
|
|||||||
@@ -1,28 +1,7 @@
|
|||||||
# Include{groups}
|
# Include{groups}
|
||||||
portals:
|
portals: {}
|
||||||
open:
|
|
||||||
protocols:
|
|
||||||
- "$kubernetes-resource_configmap_portal_protocol"
|
|
||||||
host:
|
|
||||||
- "$kubernetes-resource_configmap_portal_host"
|
|
||||||
ports:
|
|
||||||
- "$kubernetes-resource_configmap_portal_port"
|
|
||||||
questions:
|
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}
|
# Include{global}
|
||||||
|
|
||||||
- variable: controller
|
- variable: controller
|
||||||
@@ -84,6 +63,11 @@ questions:
|
|||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
# Include{fixedEnv}
|
# 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}
|
# Include{containerConfig}
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,27 @@ service:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
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:
|
persistence:
|
||||||
varrun:
|
varrun:
|
||||||
@@ -65,6 +86,13 @@ persistence:
|
|||||||
mountPath: /root
|
mountPath: /root
|
||||||
hostPathType: ""
|
hostPathType: ""
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
cluster:
|
||||||
|
enabled: true
|
||||||
|
type: hostPath
|
||||||
|
hostPath: /cluster
|
||||||
|
mountPath: /cluster
|
||||||
|
hostPathType: ""
|
||||||
|
readOnly: false
|
||||||
docker-certs-ca:
|
docker-certs-ca:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/config"
|
mountPath: "/config"
|
||||||
|
|||||||
Reference in New Issue
Block a user