diff --git a/docker-compose-services/sqlsrv/Dockerfile b/docker-compose-services/sqlsrv/Dockerfile index bbc5f8f..b1ae2e0 100644 --- a/docker-compose-services/sqlsrv/Dockerfile +++ b/docker-compose-services/sqlsrv/Dockerfile @@ -10,14 +10,14 @@ RUN curl -sSL -o /etc/apt/sources.list.d/mssql-release.list https://packages.mic RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests build-essential dialog php-pear php-dev unixodbc-dev locales -RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools +RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools php7.4-dev -# Change the PHP version to what you want. It is currently set to version 8.0. +# Change the PHP version to what you want. It is currently set to version 7.4. RUN pecl channel-update pecl.php.net -RUN pecl -d php_suffix=8.0 install sqlsrv -RUN pecl -d php_suffix=8.0 install pdo_sqlsrv +RUN pecl -d php_suffix=7.4 install sqlsrv +RUN pecl -d php_suffix=7.4 install pdo_sqlsrv -RUN echo 'extension=sqlsrv.so' >> "/etc/php/8.0/mods-available/sqlsrv.ini" -RUN echo 'extension=pdo_sqlsrv.so' >> "/etc/php/8.0/mods-available/pdo_sqlsrv.ini" +RUN echo 'extension=sqlsrv.so' >> "/etc/php/7.4/mods-available/sqlsrv.ini" +RUN echo 'extension=pdo_sqlsrv.so' >> "/etc/php/7.4/mods-available/pdo_sqlsrv.ini" RUN phpenmod sqlsrv pdo_sqlsrv diff --git a/docker-compose-services/sqlsrv/README.md b/docker-compose-services/sqlsrv/README.md index c3117d1..51e6672 100644 --- a/docker-compose-services/sqlsrv/README.md +++ b/docker-compose-services/sqlsrv/README.md @@ -16,7 +16,7 @@ Connect to `sqlsrv` host/db server from within the web container with: ``` Host: `ddev-projectname-sqlsrv` User: sa -Password: password! +Password: Password12! Database: master ```