mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
More docker trying to fix environent variables
This commit is contained in:
1 parent
af345fb2ae
commit
ae72814527
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -14,4 +14,4 @@ VOLUME /factorioClusterio/instances
|
||||
VOLUME /factorioClusterio/sharedMods
|
||||
VOLUME /factorioClusterio/sharedPlugins
|
||||
|
||||
CMD node $MODE\.js start $INSTANCE
|
||||
CMD node RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" $MODE\.js start $INSTANCE
|
||||
@@ -175,6 +175,12 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
||||
if(instancedirectory != "./instances/undefined"){
|
||||
var instanceconfig = require(instancedirectory + '/config');
|
||||
instanceconfig.unique = instanceconfig.clientPassword.hashCode();
|
||||
if(process.env.FACTORIOPORT){
|
||||
instanceconfig.factorioPort = process.env.FACTORIOPORT;
|
||||
}
|
||||
if(process.env.RCONPORT){
|
||||
instanceconfig.rconPort = process.env.RCONPORT;
|
||||
}
|
||||
} else {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user