Skip to content

Dockerfile and etc for a Wordpress docker image

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE.txt
Unlicense
UNLICENSE.txt
Notifications You must be signed in to change notification settings

domainesia/docker-apache-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Apache PHP

To Build

$ docker build -t eugeneware/docker-apache-php .

To Run

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

# run docker apache php
$ CONTAINER=$(docker run -d -p 8082:80 -p 33060:3306 -v /your/path/to/serve:/var/www/html eugeneware/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 33060

About

Dockerfile and etc for a Wordpress docker image

Resources

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE.txt
Unlicense
UNLICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ApacheConf 86.2%
  • Shell 13.8%