# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

SERVER_PORT=<%= config.serverPort %>

MYSQL_ROOT_USER=root
MYSQL_PASSWORD=1234
MYSQL_PORT=3306
MYSQL_DB=app

<% if(config.wantedDocker === 'Yes') { %>
MYSQL_HOST=mysql

REDIS_URL=redis://redis:6379
<% } %>

<% if(config.wantedDocker === 'No') { %>
MYSQL_HOST=127.0.0.1

REDIS_URL=redis://127.0.0.1:6379
<% } %>


DATABASE_URL="mysql://root:1234@localhost:3306/app"

