mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:10:42 +00:00
Docker TTL (#750)
## Description: - Terminate docker containers in staging subdomains after 24 hours. - Reduce worker count to 2 for these deployments. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,9 @@ export const preprodConfig = new (class extends DefaultServerConfig {
|
||||
return GameEnv.Preprod;
|
||||
}
|
||||
numWorkers(): number {
|
||||
if (process.env.SUBDOMAIN !== "main") {
|
||||
return 2;
|
||||
}
|
||||
return 3;
|
||||
}
|
||||
jwtAudience(): string {
|
||||
|
||||
+5
-1
@@ -104,4 +104,8 @@ else
|
||||
fi
|
||||
|
||||
# Start supervisord
|
||||
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||
if [ "$DOMAIN" = openfront.dev ] && [ "$SUBDOMAIN" != main ]; then
|
||||
timeout 24h /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||
else
|
||||
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user