Template the entrypoint
This commit is contained in:
parent
bff97d572c
commit
a723573bf3
@ -115,7 +115,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:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -25,9 +25,10 @@ file_env() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
file_env "PEERTUBE_DB_PASSWORD"
|
file_env "PEERTUBE_DB_PASSWORD"
|
||||||
|
{{ if (env "PEERTUBE_SMTP_ENABLED") }}
|
||||||
|
file_env "PEERTUBE_SMTP_PASSWORD"
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
if [ -z "$PEERTUBE_SMTP_PASSWORD_FILE" ]; then
|
# upstream entrypoint
|
||||||
file_env "PEERTUBE_SMTP_PASSWORD"
|
# https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/local/bin/entrypoint.sh "$@"
|
/usr/local/bin/entrypoint.sh "$@"
|
Loading…
Reference in New Issue
Block a user