- Docker 19.03.5
- docker-compose 1.24.1
- NGINX 1.16.0
- PHP(php-fpm) 7.4.1
- MySQL 8.0.18
- (Node.js 12.7.0)
8000 -nginx:80-> php-fpm:9000
Only first time.
$ cd src
$ git clone CLONE_URL project
$ vi docker/nginx/default.conf
1.
location / {
root /var/www/project/public;
location / {
root /var/www/SOME_PROJECT_NAME/public;
2.
location ~ [^/]\.php(/|$) {
root /var/www/project/public;
location ~ [^/]\.php(/|$) {
root /var/www/SOME_PROJECT_NAME/public;
$ docker-compose up --build -d
After that, execute the following.
$ docker-compose start
$ docker-compose stop
MIT