Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 667 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 667 Bytes

Deprecated ! Docker stack web by mboyov

PHP applications on Apache

  • Ubuntu 18.04

  • Apache 2

  • PHP 7.4

Build

To create the base image mboyov/apache2-php74, execute the following command:

docker build -t mboyov/apache2-php74 .

Running your Apache and PHP docker image

Start your image binding the external ports 80 in all interfaces to your container:

docker run -d -p 80:80 mboyov/apache2-php74

Compose

In the docker-compose.yml file replace the volume line "/var/www" with your working directory and execute the following command:

docker-compose up