Sorry, but nothing matched your search terms. Please try again with some different keywords.
Docker A LEMP With Laravel In Ubuntu
Jul 20, 2017
Docker A LEMP With Laravel In Ubuntu
Set up docker, Documents from official site : Docker.com.
Set up the repository
Get Docker CE (community edition)
Test your Docker CE installation
use non root user run docker command (add user ray to group docker)
check user group (command will list ray to docker group)
Set up LEMP(linux,nginx,php,mysql) environment
basic we just need nginx, php, mysql run on a linux server get access container:docker exec -it <container-id> /bin/bash
Create folder and files:
Docker-Compose file: docker-compose.yml
By default, docker image php don't have 'pdo, pdo_mysql', so we define this dockfile
install them by using `docker-php-ext-install pdo pdo_mysql`
- ##### Test Installation
After Create folder and finish docker-compose config,
Just Run `docker-compose up -d`
Then `docker-compose ps`
get service status like this:
Set up laravel
Set up Laravel don’t need much extro operations. just run command
laravel new laravel-example-site under foler ‘www’
Notice: composer and npm commands can just run from host machine, only if they are avaliable