Giter Site home page Giter Site logo

amiraghaee / minify-laravel-docker-compose Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

A very very simple Docker Compose that setup 4 container (mariadb - laravel - redis - phpmyadmin) for local Laravel development. This Docker-Compose is suitable for development NOT production!

minify-laravel-docker-compose's Introduction

minify-laravel-docker-compose

A very very simple Docker Compose that setup 4 container (mariadb - laravel - redis - phpmyadmin) for local Laravel development. This Docker-Compose is suitable for development NOT production!

I Prefer Laravel Sail for Docker development environment. read document here.

Usage

To get started, install Docker here.

Next, clone this repository.

Open .env file in your editor. These are the default values, but you can change them.

APP_NAME=laravel
APP_PORT=8080
DB_PORT=33060
PHPMYADMIN_PORT=8081
  • APP_NAME is your project name.
  • APP_PORT is your local port to connect to the laravel app.
  • DB_PORT is your local port to connect to the Mariadb.
  • PHPMYADMIN_PORT is your local port to connect to the phpmyadmin.

Finally, run this command at the root of the folders.

$ docker-compose up -d 

Now, your containers are up! now you can copy your laravel files into laravel directory OR create new laravel project with composer in laravel directory.

you can access to laravel project with 8080 port. (if you didn't change APP_PORT in .env file!)

localhost:8080

and phpmyadmin access in:

localhost:8081

Persistent MySQL/REDIS Storage

By default, all your data remains in the data directory! If you want to delete data only empty data folder.

minify-laravel-docker-compose's People

Contributors

amiraghaee avatar

Watchers

 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.