# create bexng file-based config mkdir -p /etc/bexng echo "${DOMAIN}" > /etc/bexng/name cat >"/etc/bexng/secrets.exs" </usr/local/sbin/bexng-before-start </dev/null aws --region="${AWS_REGION}" s3 cp --recursive "s3://bex-blockchain-${WALLET_NETWORK}/" "./" popd >/dev/null echo "starting docker-container services..." start bitcoind start postgresql start bexng start bexng-frontend