Giter Site home page Giter Site logo

docker-centos-lamp's Introduction

docker-centos-lamp

LAMP with CentOS

Make a LAMP environment using the Docker.

1. Please correct the file to suit your environment

  • authorized_keys

    Your public key

  • monit.conf

    Your IP address to allow

set httpd port 2812 and
  allow localhost        # allow localhost to connect to the server and
  allow **Your IP address here**
  allow admin:monit      # require user 'admin' with password 'monit'
  allow @monit           # allow users of group 'monit' to connect (rw)
  allow @users readonly  # allow users of group 'users' to connect readonly
  • td-agent.conf

    Your log server's IP address

<match http.app.**>
type forward
<server>
host **Your log server's IP address here**
</server>
flush_interval 2s
</match>

2. Build docker image

  % sudo docker build -t centos-lamp -rm=true .
  % sudo docker images
  REPOSITORY               TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
  centos-lamp              latest              8a8b20fd03c2        23 minutes ago      1.035 GB

3. Run docker container

  % sudo docker run -d -t -p 12812:2812 -p 10080:80 -p 10022:22 centos-lamp /usr/bin/monit -I
 9c796ab91f7d79259811b0343978ef1354a57b38e43a64d8bb83b4148aad28a0
  % curl http://localhost:10080/

docker-centos-lamp's People

Contributors

kunihirotanaka avatar

Watchers

James Cloos avatar Rujun 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.