docker non readable volume, TODO: fix later
This commit is contained in:
parent
7e022835ad
commit
b67843d5ff
|
@ -15,16 +15,19 @@ namespace SCHALE.GameServer.Utils
|
|||
if (!File.Exists(ConfigPath))
|
||||
Save();
|
||||
|
||||
#if !DOCKER_BUILD
|
||||
string json = File.ReadAllText(ConfigPath);
|
||||
|
||||
Instance = JsonSerializer.Deserialize<Config>(json);
|
||||
#endif
|
||||
|
||||
Log.Debug($"Config loaded");
|
||||
}
|
||||
|
||||
public static void Save()
|
||||
{
|
||||
#if !DOCKER_BUILD
|
||||
File.WriteAllText(ConfigPath, JsonSerializer.Serialize(Instance));
|
||||
#endif
|
||||
|
||||
Log.Debug($"Config saved");
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ services:
|
|||
target: final
|
||||
ports:
|
||||
- 80:80
|
||||
- 6667:6667
|
||||
|
||||
db:
|
||||
image: mcr.microsoft.com/mssql/server
|
||||
|
|
Loading…
Reference in New Issue