Apache2 + PHP 7.4 + composer + MS SQL PDO Driver
1.6K
A lightweight Docker image tailored for running PHP applications with Microsoft SQL Server support.
This image is based on the official PHP 7.4 image and comes pre-configured with Apache (with mod_rewrite enabled) and Composer, making it ideal for rapid PHP development with SQL Server as the backend.
mod_rewrite enabledmsodbcsql17)wgetvimcurlpoppler-utilsunixodbc-devgitzip, unziplibfreetype6-devlibjpeg62-turbo-devlibpng-devmsodbcsql17composerHere is a sample docker-compose.yml file to get started:
version: "3.9"
services:
web:
image: hamurabiaraujo/php-mssql
ports:
- "80:80"
volumes:
- ./projects/:/var/www/html/
docker run --name servername -d -p 8080:80 --restart=always -v /var/www/html/:/var/www/html/ hamurabiaraujo/php-mssql /usr/sbin/apachectl -D FOREGROUND
--name : local container name
-d : deattach
-p : port mapping [:]
-v : folder mapping [:]
--restart=always : automatically restart container
/usr/sbin/apachectl -D FOREGROUND : starting apache on container start up
php /bin/composer.phar)Content type
Image
Digest
sha256:1079c4207…
Size
202.3 MB
Last updated
over 1 year ago
docker pull hamurabiaraujo/php-mssql