generated from coop-cloud/example
refactor!: use templating for entrypoint
This commit is contained in:
parent
2f5a8b746e
commit
e995af0f61
|
@ -117,7 +117,8 @@ configs:
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
app_entrypoint:
|
app_entrypoint:
|
||||||
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
||||||
file: entrypoint.sh
|
file: entrypoint.sh.tmpl
|
||||||
|
template_driver: golang
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
db_password:
|
db_password:
|
||||||
|
|
|
@ -26,13 +26,13 @@ file_env() {
|
||||||
|
|
||||||
file_env "PEERTUBE_DB_PASSWORD"
|
file_env "PEERTUBE_DB_PASSWORD"
|
||||||
|
|
||||||
if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then
|
{{ if eq (env "PEERTUBE_SMTP_ENABLED") "1" }}
|
||||||
file_env "PEERTUBE_SMTP_PASSWORD"
|
file_env "PEERTUBE_SMTP_PASSWORD"
|
||||||
fi
|
{{ end }}
|
||||||
|
|
||||||
if [ -z "$PEERTUBE_LIVE_CHAT_ENABLED" ]; then
|
{{ if eq (env "PEERTUBE_LIVE_CHAT_ENABLED") "1" }}
|
||||||
apt -y update && apt install -y prosody && apt -y clean
|
apt -y update && apt install -y prosody && apt -y clean
|
||||||
fi
|
{{ end }}
|
||||||
|
|
||||||
# Copy the client files over to a named volume
|
# Copy the client files over to a named volume
|
||||||
# so that they may be served by nginx directly
|
# so that they may be served by nginx directly
|
Loading…
Reference in New Issue