Skip to content

This is a docker container used to test. Development Use Only.

License

Notifications You must be signed in to change notification settings

globalfoodbook/gfb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Wordpress NGINX PHP running inside docker.

A Docker container for setting up Nginx and PHP. This server can respond to requests from any client browser. This best suites development purposes.

This is a sample nginx and php docker container used to test wordpress installation on http://globalfoodbook.com

To build this gfb server run the following command:

$ docker pull globalfoodbook/gfb

This will run on a default port of 9292.

To change the PORT for this run the following command:

$ docker run --name=gfb --detach=true --publish=5118:5118 --publish=80:80 --link=mysql:mysql --link=redis:redis --volume=/path/to/wordpress/:/your/path/to/wp gfb

To run the server and expose it on port 9292 of the host machine, run the following command:

$ docker run --name=gfb --detach=true --publish=5118:5118 --publish=80:80 globalfoodbook/gfb

NB:

Before pushing to docker hub

Login

$ docker login  

Build

$ cd /to/docker/directory/path/
$ docker build -t <username>/<repo>:latest .

Push to docker hub

$ docker push <username>/<repo>:latest

IP=docker inspect gfb | grep -w "IPAddress" | awk '{ print $2 }' | head -n 1 | cut -d "," -f1 | sed "s/\"//g" HOST_IP=/sbin/ifconfig eth1 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'

DOCKER_HOST_IP=awk 'NR==1 {print $1}' /etc/hosts # from inside a docker container

Contributors

About

This is a docker container used to test. Development Use Only.

http://globalfoodbook.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published