Public | Automated Build

Last pushed: 2 years ago
Short Description
Nginx + PHP FPM , no mysql but can connect to mysql host through socker
Full Description

docker-app-no-database

RUN nginx proxy

docker run -d -p 80:80 --restart=always -v /var/run/docker.sock:/tmp/docker.sock -t jwilder/nginx-proxy

CLONE to directory

git clone git@github.com:thienkimlove/docker-app-no-database.git <directory>

cd <directory> && cp .env.example .env && cp docker-compose.yml.example docker-compose.yml

EDIT .env AND docker-compose.yml

RUN

composer install && chmod -R 777 storage && chmod -R 777 bootstrap && mysql -uroot -ptieungao -e "CREATE DATABASE dockerapp;" && php artisan migrate && docker-compose up -d

Docker Pull Command
Owner
thienkimlove

Comments (0)