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
|
||||
app_entrypoint:
|
||||
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
||||
file: entrypoint.sh
|
||||
file: entrypoint.sh.tmpl
|
||||
template_driver: golang
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
|
|
|
@ -26,13 +26,13 @@ file_env() {
|
|||
|
||||
file_env "PEERTUBE_DB_PASSWORD"
|
||||
|
||||
if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then
|
||||
file_env "PEERTUBE_SMTP_PASSWORD"
|
||||
fi
|
||||
{{ if eq (env "PEERTUBE_SMTP_ENABLED") "1" }}
|
||||
file_env "PEERTUBE_SMTP_PASSWORD"
|
||||
{{ end }}
|
||||
|
||||
if [ -z "$PEERTUBE_LIVE_CHAT_ENABLED" ]; then
|
||||
apt -y update && apt install -y prosody && apt -y clean
|
||||
fi
|
||||
{{ if eq (env "PEERTUBE_LIVE_CHAT_ENABLED") "1" }}
|
||||
apt -y update && apt install -y prosody && apt -y clean
|
||||
{{ end }}
|
||||
|
||||
# Copy the client files over to a named volume
|
||||
# so that they may be served by nginx directly
|
Loading…
Reference in New Issue