Sign inSign up

gotechnies/alpine-lamp

By gotechnies

•Updated over 9 years ago

The docker image for the apache2 engine with all php modules

Image
1

504

gotechnies/alpine-lamp repository overview

⁠This docker image will help you to run the php application on docker. This image is compatible with apache web engine.

⁠Add file named as docker-compose.yml. Paste the below content into it.

version: "2.0"
services:
  web:
    container_name: apache_server
    image: gotechnies/alpine-lamp
    ports:
       - "80:80"
       - "443:443"
    volumes:
      - ./html:/var/www/html
#    restart: always
  mysql_db:
    image: mysql:latest
    container_name: mysql_server
#    ports:
#      - 3306:3306
    environment:
      MYSQL_DATABASE: gotechnies
      MYSQL_USER: gotechnies
      MYSQL_PASSWORD: gotechnies
      MYSQL_ROOT_PASSWORD: gotechnies
#    restart: always
  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    container_name: phpmyadmin
    environment:
     - PMA_ARBITRARY=1
#    restart: always
    ports:
     - 8080:80
    volumes:
     - /sessions

#Note-: If you want to restart the docker container on system start up, uncomment the restart:always line.

Tag summary

Content type

Image

Digest

Size

53.9 MB

Last updated

over 9 years ago

docker pull gotechnies/alpine-lamp