Git Product home page Git Product logo

docker-lamp-php5's Introduction

Docker-LAMP

Docker-LAMP-PHP5 is a Docker image that includes the Phusion base along with a LAMP stack (Apache 2.4.7, MySQL 5.7 and PHP 5.6) on Ubuntu 16.04 Xenial, all in one handy container. phpMyAdmin is also bundled.

This image is only intended for legacy PHP 5.6 applications, which is end-of-life as of January 2019. Use at your own risk, preferably not in production and/or public-facing environments!

Based off an old version of mattrayner/docker-lamp.

Usage

Directory structure

/ (project root)
/app/ (your PHP files aka the web root)
/mysql/ (Docker will create this and store your MySQL data here)

Starting from command line

docker run -p "80:80" -v ${PWD}/app:/app -v ${PWD}/mysql:/var/lib/mysql gcr.io/jakejarvis/lamp-php5:latest

Starting with Docker Compose

version: "3"
services:
  lamp:
    image: gcr.io/jakejarvis/lamp-php5:latest
    ports:
      - "80:80"
    volumes:
      - "./app:/app"
      - "./mysql:/var/lib/mysql"

Starting from a Dockerfile

FROM gcr.io/jakejarvis/lamp-php5:latest

# Your custom commands

CMD ["/run.sh"]

MySQL Databases

When you first run the image, you'll see a message showing your admin user's password. This is the user you should use in your application. If you need this login later, you can run docker logs CONTAINER_ID and you should see it at the top of the log.

You can access phpMyAdmin at /phpmyadmin with the admin username and password.

By default, the image comes with a root MySQL account that has no password. This account is only available locally, i.e. within your application. It is not available from outside your Docker image or through phpMyAdmin.

License

Docker-LAMP is licensed under the Apache 2.0 License.

docker-lamp-php5's People

Contributors

djackson1 avatar erichmusick avatar gray0018 avatar jakejarvis avatar mattrayner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-lamp-php5's Issues

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.