/docker-apache-php

Docker-compose config for Apache web server and PHP 7.2 FPM

Primary LanguageDockerfile

Apache + PHP-FPM 7.2

Docker-compose config for Apache web server and PHP 7.2 FPM.

Instruction

  • Install Docker and Docker Compose
  • Pull this repository
  • Go to root directory (with docker-compose.yml file) and run: docker-compose up
  • Server is running: localhost:8000

You can also:

  • Put your php files in sources directory (index.php is index file)
  • Edit server configuration: configs/httpd.conf
  • Add rule to etc/hosts: 127.0.0.1 example.com www.exapmle.com to make server available by www.example.com:8000

License

MIT