Closed shadeofblue closed 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"
or maybe it should be expose
instead of proxy
?
can we call it tcp_proxy
to be more precise?
Why:
What: