golemfactory / dapp-runner

GNU Lesser General Public License v3.0
5 stars 6 forks source link

add `SocketProxy` support #61

Closed shadeofblue closed 1 year ago

shadeofblue commented 1 year ago

Why:

What:

shadeofblue commented 1 year ago

proposed solution:

nodes:
  db:
    payload: "db"
    init:
      - run:
          args:
            - "/bin/run_rqlite.sh"
    tcp_proxy:
      ports:
        - "4001" 
    network: "default"
    ip:
      - "192.168.0.2"
  http:
    payload: "http"
    init:
      - run:
          args: ["/bin/bash", "-c", "cd /webapp && python app.py --db-address 192.168.0.2 --db-port 4001 initdb"]
      - run:
          args: ["/bin/bash", "-c", "cd /webapp && python app.py --db-address 192.168.0.2 --db-port 4001 run > /webapp/out 2> /webapp/err &"]
    http_proxy:
      ports:
        - "5000"  # specify just the remote port, allow the local port to be automatically chosen
    network: "default"
    ip:
      - "192.168.0.3"
    depends_on:
      - "db"
shadeofblue commented 1 year ago

or maybe it should be expose instead of proxy ?

stranger80 commented 1 year ago

can we call it tcp_proxy to be more precise?

shadeofblue commented 1 year ago

-> https://github.com/golemfactory/golem-architecture/pull/62