josiahdahl / docker-reverse-proxy-example Goto Github PK
View Code? Open in Web Editor NEWSimple example of a Docker nginx reverse proxy
Simple example of a Docker nginx reverse proxy
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..
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
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..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.