docker run --volume </local/code/path>:/var/www/html --volume </local/vhost/directory/path>:/etc/apache2/sites-enabled hlacos/apache-php[:tag] [<options>] <container-name>
Example:
docker run --volume /local/code/path:/var/www/html --volume /local/vhost/directory:/etc/apache2/sites-enabled hlacos/apache-php apache-php
version: '3'
services:
apache-php:
image: hlacos/apache-php
container_name: apache-php
volumes:
- /local/code/path:/var/www/html
- /local/vhost/directory:/etc/apache2/sites-enabled
Content type
Image
Digest
Size
73.7 MB
Last updated
over 7 years ago
docker pull hlacos/apache-php