Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -euo pipefail
- if [ ! -e "docker-compose.yml" ]; then
- echo "Please run this in the project directory"
- exit 1
- fi
- echo "Initializing configuration variables..."
- echo "" > .env
- # Edit the env array below to match your required environment variables
- declare -a env=(
- SECRET_TOKEN
- DATABASE_PASSWORD
- )
- for env in "${env[@]}"; do
- echo "${env}=$(openssl rand -base64 20)" >> .env
- done
- echo -e "" >> .env
- echo "GID=$(id -g)" >> .env
- echo "UID=$(id -u)" >> .env
Add Comment
Please, Sign In to add comment