Skip to content

Instantly share code, notes, and snippets.

@marcomelilli
Last active October 27, 2019 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcomelilli/ef78b9e175e5a46282f987950ec0cbc3 to your computer and use it in GitHub Desktop.
Save marcomelilli/ef78b9e175e5a46282f987950ec0cbc3 to your computer and use it in GitHub Desktop.
NodeRed docker-compose with Nginx reverse proxy
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
proxy-net:
node-red:
image: nodered/node-red-docker
restart: always
expose:
- 1880
environment:
VIRTUAL_HOST: nodered.mysite.com
volumes:
- node-red-data:/data
networks:
proxy-net:
networks:
proxy-net:
volumes:
node-red-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment