Please note that we are redirecting all request to index.php: Here isĪ configuration for Nginx website. Next step we have to create configuration files that will be copied to our system in Docker. Other configuration files for a docker container Also as you might see our project has the name "mywebsite". Please note that if we want to access our website via v – then we have to add this alias intoĪlso, we'll have the ability to connect to MySQL from our computer outside the Docker. SSL (443 port) and standard 80 port at the address v. It will contain Nginx, PHP7.1 (FPM) with composer, MySQL and it will be accessible via Now let's explain what that instruction file does. RUN cat /etc/nginx/conf.d/server.crt /etc/nginx/conf.d/server.key > /etc/nginx/conf.d/server.pemĬOPY config/nf /etc/nginx/sites-enabled/mywebsiteĬOPY config/50-server.cnf /etc/mysql//50-server.cnfĬOPY config/php/pool/COPY config/php/nf /etc/php/7.1/fpm/nfĬOPY config/php/php.ini /etc/php/7.1/fpm/php.iniĮNV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binĮNTRYPOINT echo "\n172.17.0.1 v" > /etc/hosts
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |