Skip to content

Commit

Permalink
fix(env): Add better env for dev example
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-ride authored and flo-ride committed Oct 25, 2024
1 parent 92ac7e7 commit edae488
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .env.dev.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,43 @@
# HOST
FRONTEND_URL="http://localhost:5173"
BACKEND_URL="http://localhost:3000"

# PGADMIN
POSTGRES_HOST="database"
PGADMIN_DEFAULT_EMAIL="[email protected]"
PGADMIN_DEFAULT_PASSWORD="my_secret_password"

OPENID_ISSUER="http://localhost:8080"
OPENID_CLIENT_ID="master"
OPENID_CLIENT_SECRET="my_super_secret_key"
# DATABASE
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_PORT=5432
POSTGRES_DB="scrounch"

DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:${POSTGRES_PORT}/${POSTGRES_DB}"

# OPENID
OPENID_ISSUER="https://localhost:8080/realms/master"
OPENID_CLIENT_ID="my_keycloakd_client_id"
OPENID_CLIENT_SECRET="my_keycloakd_client_secret"

# CACHE
CACHE_URL="redis://localhost:6379"

AWS_ACCESS_KEY_ID="minioadmin"
AWS_SECRET_ACCESS_KEY="minioadmin"
# S3
MINIO_ROOT_USER="minioadmin"
MINIO_ROOT_PASSWORD="minioadmin"
MINIO_DEFAULT_BUCKETS="miniobucket"

AWS_ACCESS_KEY_ID="${MINIO_ROOT_USER}"
AWS_SECRET_ACCESS_KEY="${MINIO_ROOT_PASSWORD}"
AWS_ENDPOINT_URL="http://localhost:9000"
AWS_S3_BUCKET="miniobucket"

# Keycloak
KEYCLOAK_ADMIN="keycloak"
KEYCLOAK_ADMIN_PASSWORD="keycloak"
DB_VENDOR="postgres"
DB_ADDR="keycloak-db"
DB_USER=${POSTGRES_USER}
DB_DATABASE=${POSTGRES_DB}
DB_PASSWORD=${POSTGRES_PASSWORD}

0 comments on commit edae488

Please sign in to comment.