Compose app stops because required environment variables are not set
The application started but did not answer on any port it publishes. The deploy log has the per-port result; a worker or queue-only app can ignore this. | The application is running but failing: it answered 502. Read the application log — the container is up, so this is the code inside it. | The application is restarting, not running. Docker reports windmill_server (Restarting (1) 48 seconds ago), windmill_worker (Restarting (1) 47 seconds ago), windmill_worker (Restarting (1) 47 seconds ago),…
Why it happens
The application checks its environment at start, finds required values missing, and exits; the web part answers 500 meanwhile.
What the log looks like
windmill_worker_native-1 | Connecting to database...windmill_worker_native-1 | Error: Connecting to database: error returned from database: password authentication failed for user "postgres"windmill_server | Restarting (1)caddy-1 | error: dial tcp: lookup windmill_server: no such hostHealth check: port 80 returned 502