Code Monkey home page Code Monkey logo

docker-reverse-proxy-example's People

Contributors

josiahdahl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-reverse-proxy-example's Issues

Result didnt same as expected

I'am using ubuntu 18.04, and do all readme need to do..

My result when i run :

curl site1.docker-proxy.dev:8080 or other command..

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.15.9</center>
</body>
</html>

Is I need add some configuration ?
Thanks for reply..

Docker reverse proxy together with Node.js

Hi Josiah,

In my case I need a similar setup, but instead of an nginx webserver I´m hosting a Node.js site.

Do I need to run an additional nginx instance now in my "site docker-compose" in front of Node.js or is it somehow possible to do that without it?

This is my docker

version: '3'
services:
  application:
    build: .
    ports:
      - "3000:80"
    expose:
      - "80"
    restart: always
    environment:
        - VIRTUAL_HOST=application.docker-proxy.dev
        #- NGINX_HOST=application.docker-proxy.dev
        #- NGINX_PORT=80
    volumes:
      - .:/usr/app/
      - /usr/app/node_modules
#
# the glue!
#
networks:
    default:
        external:
            name: reverseproxy_default

I´m always getting a 502 status code and in the proxy log

2017/07/21 16:23:04 [error] 281#281: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 172.28.0.1, server: application.docker-proxy.dev, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.28.0.5:80/favicon.ico", host: "application.docker-proxy.dev", referrer: "http://application.docker-proxy.dev/"

I would really appreciate your help, thank you in advance.

Best regards,

Marian

Still error network-proxy

ERROR: Network reverseproxy_default declared as external, but could not be found. Please create the network manually using docker network create reverseproxy_default and try again

still need run command docker network create reverseproxy_default in terminal..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.