Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi.json not regenerated when using docker compose #25

Open
trevorpfiz opened this issue Oct 2, 2024 · 3 comments
Open

openapi.json not regenerated when using docker compose #25

trevorpfiz opened this issue Oct 2, 2024 · 3 comments

Comments

@trevorpfiz
Copy link

What is the best approach to get the openapi.json to update on code changes? Does the image have to rebuild?

I noticed volumes works, but that is not as good as the watch approach right?

volumes:
      - .:/app
      - /app/.venv

Thanks!

@zanieb
Copy link
Member

zanieb commented Feb 3, 2025

Sorry it looks like I missed this notification.

Is that a file included in your project or what?

@trevorpfiz
Copy link
Author

Sorry it looks like I missed this notification.

Is that a file included in your project or what?

This is what I was doing: https://github.com/trevorpfiz/BioxML-allergen-epitopes/blob/125417cc5248b183daab7b99e2e89a49183f8d59/apps/fastapi/compose.yaml#L14

Don't fully remember what was wrong, but I think the openapi.json was not updating on changes when using docker compose?

@zanieb
Copy link
Member

zanieb commented Feb 4, 2025

But what creates the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants