ohmyform/entrypoint.sh.tmpl

14 lines
432 B
Cheetah
Raw Permalink Normal View History

2022-05-12 12:29:59 +00:00
#!/bin/sh
2022-05-12 11:00:10 +00:00
2022-05-12 12:29:59 +00:00
export ADMIN_PASSWORD=$(cat /run/secrets/admin_password)
export SECRET_KEY=$(cat /run/secrets/secret_key)
2022-05-12 11:00:10 +00:00
{{ if eq (env "SMTP_ENABLED") "1" }}
2022-05-12 12:29:59 +00:00
export SMTP_PASSWORD=$(cat /run/secrets/smtp_password)
2022-05-12 11:00:10 +00:00
export MAILER_URI="smtp://{{ env "MAILER_FROM" }}:${SMTP_PASSWORD}@{{ env "MAILER_HOST" }}"
{{ end }}
# upstream entrypoint (missing, so thread CMD)
# https://github.com/ohmyform/ohmyform/blob/master/Dockerfile
exec "$@"