From 94cc62436473c52ce3cae3f878be8b5aa1c12d9a Mon Sep 17 00:00:00 2001 From: gilles Date: Mon, 21 Sep 2026 17:46:00 +0200 Subject: [PATCH] chore(env): variables de connexion aux 2 SGBD --- .env.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.env.example b/.env.example index dacd4a6..dfac94d 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,16 @@ # Variables exposées au client (préfixées NEXT_PUBLIC_) # NEXT_PUBLIC_API_URL=http://localhost:3000 + +# Implémentation repository active : mysql | mongo +DB_IMPL=mysql + +# MySQL (conteneur docker dédié flashcards-mysql, port local 13306) +MYSQL_HOST=localhost +MYSQL_PORT=13306 +MYSQL_USER=flashcards +MYSQL_PASSWORD=flashcards +MYSQL_DATABASE=flashcards + +# MongoDB (conteneur docker dédié flashcards-mongo, port local 127017) +MONGODB_DATABASE=flashcards +MONGODB_URI=mongodb://flashcards:flashcards@localhost:127017/flashcards \ No newline at end of file