
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.


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.
