![]() You must additionally configure your IDE to debug CLI requests. Īlso, you might need to update your hosts file. Allow listen connection for your IDE in Windows Firewall > Allow an app.Uncomment PHP_XDEBUG_REMOTE_HOST: for PHP service.Uncomment PHP_XDEBUG_REMOTE_HOST: 172.17.0.1 for PHP service.Perform configuration as described below depending on your OS and Docker version:.Do the same for other default domains you might need from listed below: Service env file.Īdd 127.0.0.1 to your /etc/hosts file (some browsers like Chrome may work without it). By default, we use port 8000 to avoid potential conflicts but if port 80 is free on your host machine just replace traefik's ports definition in the compose file.īy default BASE_URL set to, you can change it in. We release updates to images from time to time, you can find detailed changelog and update instructions on GitHub under releases page Domains ¶ĭocker4PHP uses traefik container for routing. ![]() You can stop containers by executing make stop or docker-compose stop. You can see status of your containers and their logs via portainer:.Your php application should be up and running at.Run containers: make up or docker-compose up -d.Optional: Windows users please read this.Optional: uncomment lines in the compose file to run redis, elasticsearch, kibana, etc.Ensure database credentials match in your database config and.Make sure NGINX_SERVER_ROOT (or APACHE_DOCUMENT_ROOT) is set to your project public directory with index.php (by default /var/www/html/public).Download from the latest stable release and unpack to your PHP project root.To use a bind mount uncomment to corresponding line under db server's volumes: in your docker-compose.yml and update the host path to your data directory. If you want to have your DB data all-time persistent and attached, we recommend using a bind mount. However, if you run docker-compose down (it's ok to use stop though) these volumes will not be reattached when you run docker-compose up. By default Docker will create a persistent volume for your DB data and unless you explicitly remove volumes the files will not be deleted.
0 Comments
Leave a Reply. |