This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi,
I have a docker compose file that is starting up a nodejs app and NPM
version: "3.8"
services:
node-app:
build:
context: .
env_file:
- .env
command: npm run start
restart: unless-stopped
nginx:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "81:81"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
I have pointed my subdomain to my vps's IP and abc.mydomain.com does point to the "Congratulations page" of NPM.
I dont believe `node-app` needs the port exposed according to https://youtu.be/P3imFC7GSr0?t=441 (the video says that the port doesnt need to be exposed and that the docker network will have access to the `node-app`. My node app is running on port 8000
Currently:
- `123.456.789.123` points to the "Congratulations page"
- `123.456.789.123:81` points NPM login page
- `abc.mydomain.com` points to the "Congratulations page"
- `abc.mydomain.com:81` doesnt do anything
How do i make it so that
- `abc.mydomain.com` points to the node-app
- `def.mydomain.com` points to NPM login page.
- `123.456.789.123` points nothing
- `123.456.789.123:81` points to nothing
​
When I used the internal IP (for example 172.22.0.2) of the node-app as a proxy host, it did work, however, everytime I redeploy my container, it breaks because the internal IP changes
Subreddit
Post Details
- Posted
- 10 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/nginxproxym...