Skip to content

Instantly share code, notes, and snippets.

@sand97
Created January 20, 2022 13:37
Show Gist options
  • Save sand97/3e7b6c55fbc670e0b4f363c7811bae4e to your computer and use it in GitHub Desktop.
Save sand97/3e7b6c55fbc670e0b4f363c7811bae4e to your computer and use it in GitHub Desktop.
NestJS env file
SERVER_PORT=3000
DB_PASSWORD=my-custom-password
DB_USERNAME=first-project-user
DB_DATABASE_NAME=first-project-db
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
PORT=3000
MODE=DEV
#For prisma. Make sure that de pgsql service name, the db name, user
# and password is the same of above.
DATABASE_URL="postgresql://first-project-user:my-custom-password@postgres:5432/first-project-db?schema=public"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment