Running Nginx docker

Currently reading
Running Nginx docker

Hi guys, new here
Really can't get this to work.

I have a docker django + gunicorn + nginx setup.
In docker-compose, for nginx I have:
Code:
nginx:
  build: ./nginx
  ports:
    - 1337:85
  volumes:
    - ./staticfiles:/static/
  depends_on:
    - web

In nginx.conf I have it listen to 85 as well.
I did this base on my understanding that I need to avoid port 80, as synology itself is running nginx as reverse proxy.

With above setup, everything work 100% locally, staticfiles are loading and all with localhost:1337
But .... if I open port 1337 in control panel => external access. It failed.

For my other web app without the Nginx server, I can go in External Access => create => built in application => docker and open router port and access remotely without any problems. But not this one.

Any tips?
Thank you in advance.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

What I've found out: 1.) If I turn off the Kill Switch, then I'm good to go with the local devices 2.) If...
Replies
2
Views
2,576
  • Solved
yes you can fullchain + privkey would be a better option
Replies
21
Views
4,071
  • Question
It worked, now have nginx running on a different port and my app+database+.... works fine. Thnx!
Replies
4
Views
1,847
You need to allow these IP addresses in your Firewall (secure Cloudflare DNS servers): Useful also for...
Replies
3
Views
2,257
I love the FOSS thing, but wow Plex is just better than jellyfin. Enough so that wife is switching to...
Replies
11
Views
2,129

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top