I am doing a project with docker, where I have to configure a web server onto a container and this to be reached from my web browser. Ive created my Test environment in VMware using debian. I configured a nginx reverse proxy and also a dockerfile for my web server. Below you will find my docker-compose.yml file.
services:
reverse-proxy:
image: "jwilder/nginx-proxy:alpine"
container_name: "reverse-proxy"
volumes:
- "/usr/share/nginx/html"
- "/etc/nginx/dhparam"
- "/etc/nginx/vhost.d"
- "/etc/nginx/certs"
- "/run/docker.sock:/tmp/docker.sock:ro"
restart: "always"
ports:
- "80:80"
- "443:443"
container:
depends_on:
- reverse-proxy
image: web-new:latest
container_name: "webserver"
restart: unless-stopped
Now the container is all configured and when i try to access it with its ip (curl) it works and im trying to reach it from my Windows Host browser but its not working. Anyone can help, I am new on this docker journey and I would really appreciate some help.
Thank you.