mirror of
https://github.com/runcitadel/core.git
synced 2024-12-28 15:42:59 +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:
|
||||
mainPort = portDetails['port']
|
||||
|
||||
mainContainer = assignIp(mainContainer, app.metadata.id, path.join(
|
||||
nodeRoot, "apps", "networking.json"), path.join(nodeRoot, ".env"))
|
||||
if mainContainer.network_mode != "host":
|
||||
mainContainer = assignIp(mainContainer, app.metadata.id, path.join(
|
||||
nodeRoot, "apps", "networking.json"), path.join(nodeRoot, ".env"))
|
||||
|
||||
# Also set the port in metadata
|
||||
app.metadata.port = int(containerPort)
|
||||
|
|
Loading…
Reference in New Issue
Block a user