Git Product home page Git Product logo

ngxl's Introduction

A NGINX-LUA docker image.

A Docker container for setting up programmable Nginx instance.

This server serves requests from client web browser via port 80. This best suites development purposes.

This is a sample Nginx-Lua docker container used to test Wordpress installation on http://globalfoodbook.com

To build this ngxl server run the following command:

$ docker pull globalfoodbook/ngxl

This will run on a default port of 80.

To change the PORT for this run the following command:

$ docker run --name=ngxl --detach=true --publish=80:80  --publish=443:443 --link=varnish:varnish

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

$ docker run --name=ngxl --detach=true --publish=80:80  --publish=443:443 --link=varnish:varnish globalfoodbook/ngxl

To run the server in interactive mode of the host machine, run the following command:

$ docker run --name=ngxl -it --publish=80:80  --publish=443:443 --link=varnish:varnish globalfoodbook/ngxl /bin/bash

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 ngxl | 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

ngxl's People

Contributors

ikennaokpala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.