This docker has three containers:
- One for the database (db).
- One for the apache server (httpd).
- One for a phpmyadmin app.
- Go to the project root foler.
- Rename .env-example to .env or create a new one.
- Modify .env file with custom params for docker containers.
- Execute: make up.
- To access any container you can run: make shell-<container_name> For example: make shell-apache for httpd bash.
- Website can be seen on http://localhost: Port selected on HTTPD_PORT.
- Phpmyadmin can be seen on http://localhost: Port selected on PHPMYADMIN_PORT.
- To run any website only create a directory called src and place your code there.
- For a complete list of commands just execute make help.
Thanks to @oilegor1029 for the Makefile idea to initialize dockers.