Giter Club home page Giter Club logo

docker-centos-apache-php's Introduction

docker-centos-apache-php

Create Docker images for Web server based on Centos, Apache and PHP

Centos7, Apache 2.4, PHP 7.1

Create base image (php71-apache24-base)

docker image build -t php71-apache24-base ./php71-apache24-base

Create image with extra components, custom config (.custom-config/) and web application code (.www/ folder)

docker image build -t php71-apache24 ./php71-apache24

Run image

docker run -p 8080:8080 php71-apache24

Open local web server

http://localhost:8080/

PHP 7.1 Public docker image

https://hub.docker.com/r/franciscoigor/php71-apache24-centos7

Centos7, Apache 2.4, PHP 5.5

Create base image (php55-apache24-base)

docker image build -t php55-apache24-base ./php55-apache24-base

Create image with extra components, custom config (.custom-config/) and web application code (.www/ folder)

docker image build -t php55-apache24 ./php55-apache24

Run image

docker run -p 8080:8080 php55-apache24

Open local web server

http://localhost:8080/

PHP 5.5 Public docker image

https://hub.docker.com/r/franciscoigor/php55-apache24-centos7

Docker-compose example

A common PHP development environment with :

  • PHP 7.1 / Apache 2.4 / Centos7
    • phpapp container
    • HTTP Port 8080
  • MariaDB 10.3
    • mariadb container
  • PHPMyAdmin
    • myadmin container
    • HTTP port 8082

Run containers

docker-compose up -d

Stop containers

docker-compose stop

Unload containers

docker-compose down

Access containers:

docker-centos-apache-php's People

Contributors

fraigo avatar

Stargazers

 avatar

Watchers

 avatar  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.