Every time I built the Laravel environment with Docker, it was troublesome to enter commands for creating directories and docker files, so I made it possible to create the following structure with one command line.
application
├─ docker
│ ├─ php
│ │ └─ Dockerfile
│ └─ nginx
│ └─ default.conf
└─ docker-compose.yml
$ mkdir -p application/docker/php && mkdir -p application/docker/nginx && cd application/docker/php && touch Dockerfile && cd .. && cd nginx && touch default.conf && cd ../.. && touch docker-compose.yml
If you enter the above command, you can create at least the directories and files required to build the Docker environment. Please change the project name "application" etc. as necessary.
Recommended Posts