If you’re using a remote server, it’s advisable to have an active firewall installed. Access to an Ubuntu 20.04 local machine or development server as a non-root user with sudo privileges.
We’ll also see how to use docker-compose exec commands to run Composer and Artisan on the app container. To allow for a streamlined development process and facilitate application debugging, we’ll keep application files in sync by using shared volumes. When you’re finished, you’ll have a demo Laravel application running on three separate service containers:
In this guide, we’ll use Docker Compose to containerize a Laravel application for development. Such environments are isolated and disposable, and can be leveraged for developing, testing, and deploying applications to production. To containerize an application refers to the process of adapting an application and its components in order to be able to run it in lightweight environments known as containers.