Skip to content
Snippets Groups Projects
Commit bb2c1e05 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

add relay

parent 3287dbbb
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ services: ...@@ -42,6 +42,7 @@ services:
depends_on: depends_on:
- backend - backend
- frontend - frontend
- relay
restart: always restart: always
# The MongoDB database for the VILLASweb backend # The MongoDB database for the VILLASweb backend
...@@ -60,12 +61,19 @@ services: ...@@ -60,12 +61,19 @@ services:
command: node /etc/villas/node/demo.conf command: node /etc/villas/node/demo.conf
volumes: volumes:
- ./etc/node:/etc/villas/node - ./etc/node:/etc/villas/node
- ./data:/data
ports: ports:
- "8081:80" - "8081:80"
- "12000-12010:12000-12010/udp" - "12000-12010:12000-12010/udp"
- "12000-12010:12000-12010/tcp" - "12000-12010:12000-12010/tcp"
restart: always restart: always
# A relay for websocket nodes
relay:
image: villas/node
restart: always
command: relay
# Web Interface for MongoDB # Web Interface for MongoDB
mongo-express: mongo-express:
image: mongo-express image: mongo-express
......
...@@ -61,6 +61,10 @@ server { ...@@ -61,6 +61,10 @@ server {
proxy_pass http://node/api; proxy_pass http://node/api;
} }
location /ws/relay/ {
proxy_pass http://relay:8088/;
}
location /ws/ { location /ws/ {
proxy_pass http://node/; proxy_pass http://node/;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment