Sign inSign up

kmahesh541/php5-apache2-mysql5

By kmahesh541

•Updated about 3 years ago

php5, apache2, mysql5, phpmyadmin environment setup

Image
0

735

kmahesh541/php5-apache2-mysql5 repository overview

this image contains ubuntu 14.04 and php5 and apache2 environment. this image is created to support php projects which uses 5.6 version.

This image is used to create a setup of php5, apache2, mysql5, phpmyadmin. mysql5 and phpmyadmin we are using as separate docker images.

The docker compose (docker-compose.yml) file

docker-compose.yml:

version: '3'
services:
  mysql:
    image: mysql:5.5.62
    environment:
      - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
    volumes:
      - ./telemysql_data:/var/lib/mysql
      - /var/www/html:/var/www/html
    ports:
      - "3307:3306"  # Map port 3307 on the host to port 3306 in the container

  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    environment:
      - UPLOAD_LIMIT=512M
    links:
      - mysql:db
    ports:
      - "81:80"

  my_apache_php:
    image: docker.io/kmahesh541/php5-apache2-mysql5
    volumes:
      - /var/www/html:/var/www/html
      - /var/www:/var/www
    ports:
      - "80:80"
    environment:
      - MYSQL_HOST=${MYSQL_HOST}
      - MYSQL_PORT=${MYSQL_PORT}

Environment File(.env)

MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=your_password_here

docker-compose up -d

if you want to build your own image and for more information visit https://github.com/kmahesh541/php5-apache2-mysql5⁠

Tag summary

Content type

Image

Digest

sha256:d9a4e5173…

Size

118.6 MB

Last updated

about 3 years ago

docker pull kmahesh541/php5-apache2-mysql5