Docker compose starts app container in restarting loop

We’d have to see your Dockerfile and run command to confirm, but my suspicion is that your CMD/ENTRYPOINT is a single command that runs, and then finishes. Once it finishes, the container stops. Since you have restart: always, it starts back up, runs the command, and stops again.

Try using a docker run command without the -it You should see the same results.

You’ll likely need to change your CMD/ENTRYPOINT to something that stays up.