env.sh 322 B

123456789
  1. #!/bin/bash
  2. export DB_USER="${POSTGRES_USER:=postgres}"
  3. export DB_PASSWORD="${POSTGRES_PASSWORD:=password}"
  4. export DB_PORT="${POSTGRES_PORT:=5433}"
  5. export DB_HOST="${POSTGRES_HOST:=localhost}"
  6. export DB_NAME="${POSTGRES_DB:=flowy}"
  7. export DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@localhost:${DB_PORT}/${DB_NAME}