Skip to content

SeamlessDistribution/seqr-ecommerce-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Apache PHP

Apache - 2.4.18
PHP - 5.6.16
MySQL - 5.5.35

To Build

$ docker build -t docker-apache-php .

To Run

Use docker volumes to expose your web content to the apache web server.

# run docker apache php as deamon with expose your web content to the apache web server
$ CONTAINER=$(docker run -p 80 -p 3306 -v /var/www/html:/var/www/html -d docker-apache-php)

# get the http port
$ docker port $CONTAINER 80
0.0.0.0:49206

To access the database

# get the mysql port
$ docker port $CONTAINER 3306
0.0.0.0:49205

# get [dockerhost] IP reading 'inet addr' value
$ ifconfig docker0 | grep 'inet addr'
          inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0

$ mysql -h172.17.42.1 -uroot -P 49205

About

No description, website, or topics provided.

Resources

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE.txt
Unlicense
UNLICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages