Skip to content
Snippets Groups Projects
Commit 9d9b1ade authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Increased default available tunnel ports form 5 to 20.

parent 58079501
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
#- DJANGO_PUBLIC_HTTP_HOST=http://localhost:8080 #- DJANGO_PUBLIC_HTTP_HOST=http://localhost:8080
ports: ports:
- "8080:8080" - "8080:8080"
- "7000-7005:7000-7005" - "7000-7020:7000-7020"
volumes: volumes:
- ./data_rosetta/webapp/data:/data - ./data_rosetta/webapp/data:/data
- ./data_rosetta/webapp/log:/var/log/webapp - ./data_rosetta/webapp/log:/var/log/webapp
......
...@@ -507,7 +507,7 @@ def setup_tunnel(task): ...@@ -507,7 +507,7 @@ def setup_tunnel(task):
if other_task.tunnel_port and not other_task.status in [TaskStatuses.exited, TaskStatuses.stopped]: if other_task.tunnel_port and not other_task.status in [TaskStatuses.exited, TaskStatuses.stopped]:
allocated_tunnel_ports.append(other_task.tunnel_port) allocated_tunnel_ports.append(other_task.tunnel_port)
for port in range(7000, 7006): for port in range(7000, 7021):
if not port in allocated_tunnel_ports: if not port in allocated_tunnel_ports:
tunnel_port = port tunnel_port = port
break break
......
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