presta-design is running
PHP, the web server and the database are up. This is the placeholder page of a new project.
| PHP | 8.3.37 (apache2handler) |
|---|---|
| Database | connected (presta-design) |
| Document root | /var/www/html - the www/ subdirectory of the project on the host |
Next step: put your application in the
www/ directory of the project
and delete index.php. Files added there are visible to the container immediately - no
rebuild, no restart. Only www/ is served: Dockerfile,
docker-compose.yml and the other files one level up are the environment of this
project, not part of the site. Database credentials reach your code as environment variables
(MYSQL_HOST, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD), so you never have to write the password into a file.