Startup-Delay von 15 Sekunden hinzugefügt, damit nginx beim Stack-Neustart bereit ist
Some checks failed
Build Test Docker Image / docker-test (pull_request) Successful in 1m33s
Run Tests / test (pull_request) Failing after 1m11s

This commit is contained in:
2026-03-28 15:40:06 +01:00
parent 2a6d9b2543
commit be77b36596

View File

@@ -46,6 +46,13 @@ func main() {
func run() error {
slog.Info("starting mcbdd", "version", version, "commit", commit, "date", date)
// Kurze Wartezeit beim Start, damit abhängige Dienste (z. B. nginx)
// vollständig hochgefahren sind, bevor Verbindungen aufgebaut werden.
const startupDelay = 15 * time.Second
slog.Info("waiting for dependent services to become ready", "delay", startupDelay)
time.Sleep(startupDelay)
mailcowBase := os.Getenv("MAILCOW_BASE")
if mailcowBase == "" {
return fmt.Errorf("MAILCOW_BASE environment variable is not set")