api won't stay up — it exits 1 right after boot. The deploy was careful to pass every environment variable the app needs, and the logs even say JWTSECRET present. Yet it still dies complaining about JWTSECRET. Figure out what's actually wrong with the config and get api running.
api — myapp:latest, Exited (1), deployed with JWT_SECRET,DATABASE_URL, and PORT in its environment.
$ docker logs api
[config] JWT_SECRET present
RuntimeError: JWT_SECRET must be set to a non-empty value
$ docker inspect -f '{{.Config.Env}}' api
[JWT_SECRET= DATABASE_URL=postgresql://app@db:5432/appdb PORT=8080]
You've solved it when:
JWT_SECRET= with${JWT_SECRET} in the shell that ran compose).
api up running by supplying a real, non-emptyJWT_SECRET.
docker CLI only.api in status == running with a non-empty JWT_SECRET.docker run -e JWTSECRET (no =value) vs -e JWTSECRET= — what${JWT_SECRET:?error} in a compose file have surfaced this at