diff --git a/Source/API/Dockerfile b/Source/API/Dockerfile index 796e84e..13bd362 100644 --- a/Source/API/Dockerfile +++ b/Source/API/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache RUN apt-get update && apt-get upgrade -y RUN docker-php-ext-install mysqli -RUN apt-get install php8.1-mysql +RUN apt-get install php8.0-mysql COPY ./script /var/www/html \ No newline at end of file diff --git a/Source/API/script/config.php b/Source/API/script/config.php index 8b1894c..40160c4 100644 --- a/Source/API/script/config.php +++ b/Source/API/script/config.php @@ -2,7 +2,7 @@ require_once "./Connection.php"; -$dsn = "mysql:host=codefirst.iut.uca.fr/containers/Temoignages-db_form;dbname=".$_ENV["DATABASE"].";"; +$dsn = "mysql:host=".$_ENV["HOST"].";dbname=".$_ENV["DATABASE"].";"; $login = $_ENV["USER"]; $password = $_ENV["PASSWORD"];