Code Monkey home page Code Monkey logo

docker-laravel's Introduction

A ready to use docker image for Laravel

The image includes:

  • Apache
  • PHP
  • MySQL Connector
  • PHP mcrypt extension
  • Composer
  • Laravel
  • SSL Support

To use with fig:

´
web:
  image: luis/laravel
  volumes:
    - "./:/var/www/app"
    - "/tmp/logs:/var/log/apache2"
  ports:
    - "80:80"
  net: "host"
´

/var/www/app is where the application lives, if you want to change it, you also need to change Apache's configuration files. Take a look at the files inside the config directory for an example.The files must be mapped to /etc/apache2/sites-enabled

The net: "host" is so you can access MySQL in the host, if you run MySQL in another container, link it.

Logs are at /var/log/apache2

Note: mod_rewrite is automatically enabled, if you don't want it, override the apache files.

docker-laravel's People

Stargazers

 avatar Eduardo Luz avatar Quan Kong avatar jaime Dm avatar  Fernando avatar Omar Lozada avatar M_miang avatar  avatar

Watchers

Luis Elizondo avatar James Cloos 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.