Sign inSign up

szokekaroly/fedora-httpd-php

By szokekaroly

•Updated almost 7 years ago
Archived

Basic web development image

Image
0

658

szokekaroly/fedora-httpd-php repository overview

⁠fedora-httpd-php

⁠Dockerfile for web development

This image was made for developing web application in php language.

⁠What does it contain?

This image built on Fedora 25. It contains a httpd web server with php and php-mysql. You can access web server on port 80.

⁠How can you use it?
  1. copy your sources into /var/www/html
  2. docker run -p 80:80 -v /var/www/html:/var/www/html --name web szokekaroly/fedora-http-php
  3. you can access it in the browser: http://localhost/⁠

You need an initialized and configured mariadb docker image.

  1. docker run -p 3306:3306 --name mariadb -v mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=yourpw mariadb
  2. docker run -p 80:80 --name web --link mariadb:db szokekaroly/fedora-httpd-php
  3. set in your php configuration file: hostname=db, password=yourpw

Or you can make a docker-composer file. Sample docker-compose⁠ file

⁠Using image with xdebug

docker run -p 80:80 -e XDEBUG_CONFIG="remote_host={{YOUR_IP_ADDRESS}}" szokekaroly/fedora-httpd-php:xdebug

example: docker run -p 80:80 -e XDEBUG_CONFIG="remote_host=192.168.0.2" szokekaroly/fedora-httpd-php:xdebug

Tag summary

Content type

Image

Digest

Size

163 MB

Last updated

almost 7 years ago

docker pull szokekaroly/fedora-httpd-php