docker non readable volume, TODO: fix later

This commit is contained in:
rfi 2024-05-23 19:22:25 +07:00
parent 7e022835ad
commit b67843d5ff
2 changed files with 5 additions and 1 deletions

View File

@ -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");
}

View File

@ -18,6 +18,7 @@ services:
target: final
ports:
- 80:80
- 6667:6667
db:
image: mcr.microsoft.com/mssql/server