There is a docker with Apache + PHP + MySQL + OpenSSL, you need to configure the docker so that all the connections are through the docker, and the server remains: the database and the body of the site, but how many instructions on the Internet, I do not understand where to dig further, what has been done :
- Docker is configured, hanging on port 80;
- Installed volume, docker run -it -p 80:80 --net = "host" --privileged -v mSQL: / var / lib / mysql / demo_ehealth apache2_ufw_mysql_php_iit_ulimit / bin / sh;
- Using the docker volume inspect command, mSQL determined the location of the / var / snap / docker / common / var-lib-docker / volumes / mSQL / _data directory;
- In _data copied the body of the site and database.
I don’t know what to do next, I will be grateful for clarifying advice on what to do next, as I understand it, you need to create a virtual host for Apache, but how do you know where this directory is mounted in Docker? And how to attach the control to the database, I hope that you do not need to create an IP, it will be enough just to specify the MySQL port, but how do you know the port and IP?