env.sh 501 B

12345678910111213141516
  1. #!/bin/bash
  2. export POSTGRES_USER=postgres
  3. export POSTGRES_PASSWORD=password
  4. export POSTGRES_PORT=5433
  5. export POSTGRES_HOST=localhost
  6. export POSTGRES_DB=flowy
  7. export DB_USER="${POSTGRES_USER:=postgres}"
  8. export DB_PASSWORD="${POSTGRES_PASSWORD:=password}"
  9. export DB_PORT="${POSTGRES_PORT:=5433}"
  10. export DB_HOST="${POSTGRES_HOST:=localhost}"
  11. export DB_NAME="${POSTGRES_DB:=flowy}"
  12. export BACKEND_VERSION="v0.0.1"
  13. export DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@localhost:${DB_PORT}/${DB_NAME}