Use this repository to get started with developing your Laravel application in a Docker container.
- Docker running on the host machine.
- Docker compose running on the host machine.
- Basic knowledge of Docker.
To get started, the following steps needs to be taken:
- Clone the repo
git clone git@github.com:neoighodaro/laravel-docker.git appname
- Change to the directory
cd appname
- Copy
.env.example
to.env
and customise the contents. - Run
docker-compose up -d
to start the containers. - Visit http://localhost:8888 to see your Laravel Docker instance.
- Port number might be already in use, change from
8888
to another number in yourdocker-compose.yml
file. - If there are container name conflicts, update the container_name value for that container in the
docker-compose.yml
file. - If you have any other issues, report them.