Skip to content
Discussion options

You must be logged in to vote

In current implementation, there is a command defined in in .Dockerfile:

CMD ["fastapi", "run", "--workers", "4", "app/main.py"]`

And for development, this command is overridden in docker-compose.override.yml:

  backend:
    ...
    command:
      - fastapi
      - run
      - --reload
      - "app/main.py"

So, in production, the command defined in .Dockerfile is used

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants