GithubHelp home page GithubHelp logo

docker-lamp-laravel-centos7's Introduction

docker-lamp-laravel-centos7

This is a basic LAMP environment built using Docker Compose. It consists following.

  • php7.3
  • centos7
  • apache2.4
  • mysql8.0
  • composer
  • node js (Gulp)

Constitution

docker-lamp-laravel-centos7/

├── docker
│   ├── db
│   │   └── my.cnf       # Sync to /etc/mysql/conf.d/my.cnf
│   └── web
│       ├── Dockerfile
│       ├── docker.conf  # Copy to /etc/httpd/conf.d/docker.conf
│       ├── php.ini      # Sync to /etc/php.ini
│       └── php73.conf   # Copy to /etc/httpd/conf.d/php73.conf
├── docker-compose.yml
├── logs
│   ├── access_log
│   ├── error_log
│   ├── mysql-error.log
│   ├── mysql-query.log
│   ├── mysql-slow.log
│   └── php-error.log
└── src

Installation

1.Clone this repository

git clone [email protected]:yeon444/docker-lamp-laravel-centos7.git
cd docker-lamp-laravel-centos7

2.Run docker compose

$docker-compose up -d --build

3.Initialization

# access to container
$docker-compose exec web bash

# composer
[root@5f2582e9f467 html]# composer install

# create .env
[root@5f2582e9f467 html]# cp .env.example  .env

# exit to Host OS
[root@5f2582e9f467 html]# exit

# restart
$docker-compose restart

# access to container & migrate
$docker-compose exec web bash
[root@5f2582e9f467 html]# php artisan migrate

# create key
[root@5f2582e9f467 html]# php artisan key:generate

4.Confirm

Access to http://127.0.0.1:10080/

aa

TODO

  1. add php Xdebug
  2. add phpMyAdmin

docker-lamp-laravel-centos7's People

Contributors

hello-yeon avatar helloyeon 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.