mirror of
https://github.com/runcitadel/core.git
synced 2024-11-13 17:30:38 +00:00
More fixes for host mode apps
This commit is contained in:
parent
96f942e7a0
commit
88969f6641
|
@ -62,8 +62,9 @@ def configureMainPort(app: AppStage2, nodeRoot: str) -> AppStage3:
|
||||||
if mainPort == False:
|
if mainPort == False:
|
||||||
mainPort = portDetails['port']
|
mainPort = portDetails['port']
|
||||||
|
|
||||||
mainContainer = assignIp(mainContainer, app.metadata.id, path.join(
|
if mainContainer.network_mode != "host":
|
||||||
nodeRoot, "apps", "networking.json"), path.join(nodeRoot, ".env"))
|
mainContainer = assignIp(mainContainer, app.metadata.id, path.join(
|
||||||
|
nodeRoot, "apps", "networking.json"), path.join(nodeRoot, ".env"))
|
||||||
|
|
||||||
# Also set the port in metadata
|
# Also set the port in metadata
|
||||||
app.metadata.port = int(containerPort)
|
app.metadata.port = int(containerPort)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user