#!/bin/bash # Co-op Cloud wrapper around the official image's /sbin/boot. # discourse/discourse reads passwords from the process env (pups/Ruby; it has no # *_FILE support), so inject them from the docker secrets before booting. set -e if [ -f /run/secrets/db_password ]; then export DISCOURSE_DB_PASSWORD="$(cat /run/secrets/db_password)" fi if [ -f /run/secrets/smtp_password ]; then export DISCOURSE_SMTP_PASSWORD="$(cat /run/secrets/smtp_password)" fi exec /sbin/boot