Highly customizable Docker setup for Nette projects development.
- Create
.docker/local/.env
based on.docker/local/.env.example
. - Start containers using
./run.sh local up
. - Access the PHP container terminal using
docker exec -it ${APP_NAME}_php bash
(replace${APP_NAME}
with your app name). In the PHP container terminal, you can create a Nette project using:
composer create-project nette/web-project nette_app
The Nette project folder must be named nette_app
because of how the root
is configured in the .docker/local/nginx/default.conf
file:
root /var/www/nette_app/www;
Choosing a different name for the Nette project is possible by modifying the .docker/local/nginx/default.conf
file like so:
root /var/www/<YOUR_NETTE_APP_FOLDER_NAME>/www;