127.0.0.1 dev.lefebvre.es
composer install
Create file .env.local
in root folder with the following contents:
DATABASE_URL=mysql://root:root@db:3306/lefebvre?serverVersion=5.7
Use the following commands:
docker-compose up -d --build
You can list the running containers using:
docker ps
Or you can also access to a container using:
docker exec -it _container_name bash
Open http://dev.lefebvre.es/ in your browser :)
- Install docker-sync utility
- Run docker-sync on the root folder of the project:
docker-sync
- Rebuild the containers:
docker-compose up -d --build
- Access the php container and run:
composer install
or whatever commands you need.
-
Open http://dev.lefebvre.es/ in your browser :)
-
Using Visual Studio Code install the followgin extensions:
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
- Reopen the project in Visual Studio Code