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:
Scott Anderson
2025-05-14 12:33:07 -04:00
committed by GitHub
parent 2b7b5f03c7
commit fc54cd7658
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -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
View File
@@ -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