Based on the image 7.3-apache from PHP@Dockerhub
It contains the MS SQL SERVER PDO and also the MySQL PDO drivers.
It also has WKHTMLTOPDF to gerenerate some beatifull PDF files using HTML+CSS.
The webserver is pointing to /app/public, so it's expected to mount your volume in /app if you're using Laravel, Symfony, etc., or straight to the public folder if not. It also serve at the port 80.
Use it as it is in a container: 1st form: If your PHP framework has a PUBLIC folder
$ docker run --rm -v="/path_to_app:/app" -it -p 8080:80 cauehqueiroz/php7.3-sql_srv
2nd form: If you want to serve in that specific folder
$ docker run --rm -v="/path_to_app:/app/public" -it -p 8080:80 cauehqueiroz/php7.3-sql_srv
Or in docker-compose.yml:
version: '3'
services:
php-dev-webserver:
container_name: php-dev-webserver
image: cauehqueiroz/php7.3-sql_srv:latest
volumes:
- ./:/app
ports:
- 8080:80
Then run: docker-compose up
Content type
Image
Digest
Size
333.1 MB
Last updated
almost 6 years ago
docker pull cauehqueiroz/php7.3-sql_srv