Followers

Wednesday, 2 August 2017

Docker Nginx localhost in Windows 10 host file

Source: stackoverflow.com --- Tuesday, August 01, 2017
I'd like to try a Nginx Docker container but I don't know how I set the host file on a Windows 10 based on http://ift.tt/2f6aTl1 . Can somebody help me, please? web: image: nginx:latest ports: - 8890:80 volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/site.conf and server { index index.php index.html; server_name php-docker.local; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /code; } It should work on php-docker.local:8890 address. Thanks in advance. ...



from Windows http://ift.tt/2f6jBjb

No comments:

Post a Comment