Public Repository

Last pushed: a year ago
Short Description
Docker image with Apache2 web server and PHP based on the official CentOS image
Full Description

Designed for Web Development

  • CentOS7
  • Apache2.4
  • PHP5.4
  • Composer
  • PHP extensions

Dockerfile

FROM centos:latest

RUN yum -y update

RUN yum -y install httpd php php-mysql pdo_mysql php-mcrypt php-mbstring php-intl php-pdo zip

RUN curl -s https://getcomposer.org/installer | php

RUN mv composer.phar /usr/local/bin/composer

EXPOSE 80

CMD ["/usr/sbin/httpd","-DFOREGROUND"]

docker-compose.yml

mysql:
  image: mysql:latest
  environment:
    - MYSQL_ROOT_PASSWORD=
    - MYSQL_DATABASE=
    - MYSQL_USER=
    - MYSQL_PASSWORD=
  ports:
    - "3306:3306"

centos7:
  image: attack1208/centos7
  ports:
    - "80:80"
  volumes:
    - /Users/username/Documents/docker/php/public-html:/var/www/html:rw
  links:
    - mysql

my-phpmyadmin:
  image: phpmyadmin/phpmyadmin
  environment:
    - PMA_USER=
    - PMA_PASSWORD=
  ports:
    - "8080:80"
  links:
    - "mysql:db"
Docker Pull Command
Owner
attack1208

Comments (0)