From af12fbc5cf658d51469bf0daf1ea968d2cb2a540 Mon Sep 17 00:00:00 2001 From: flo-ride <43076999+flo-ride@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:49:31 +0200 Subject: [PATCH] fix(env): Add better env for dev example --- .env.dev.example | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.env.dev.example b/.env.dev.example index 516494e..6823f76 100644 --- a/.env.dev.example +++ b/.env.dev.example @@ -1,16 +1,43 @@ +# HOST FRONTEND_URL="http://localhost:5173" BACKEND_URL="http://localhost:3000" +# PGADMIN +POSTGRES_HOST="database" +PGADMIN_DEFAULT_EMAIL="admin@atelier-lyon.fr" +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}