Skip to content

Conversation

javadzarezadeh
Copy link

I've mapped the Docker container's Alembic folder to the local directory, ensuring that any auto-generated migration files created by Alembic are automatically copied to the local development environment.

@YuriiMotov YuriiMotov added the bug Something isn't working label Sep 4, 2025
@YuriiMotov YuriiMotov changed the title Fix alembic autogenerate issue 🐛 Mount /backend/app/alembic/versions as a volume inside container during development Sep 4, 2025
YuriiMotov

This comment was marked as outdated.

@YuriiMotov YuriiMotov dismissed their stale review September 4, 2025 13:40

Found problem...

Copy link
Member

@YuriiMotov YuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @javadzarezadeh !

There seems to be a problem.. If you run docker compose watch and create file in /backend/app/alembic/versions, then Docker starts syncing service infinitely:

Watch enabled
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 2 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected
Syncing service "backend" after 1 changes were detected

@YuriiMotov
Copy link
Member

I think this suggestion should work:

Try excluding the alembic folder from watch to fix the refresh

Copy link
Contributor

github-actions bot commented Oct 5, 2025

As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.

@github-actions github-actions bot closed this Oct 5, 2025
@YuriiMotov YuriiMotov reopened this Oct 5, 2025
@YuriiMotov
Copy link
Member

@javadzarezadeh, would you like to continue working on this?
Or, is anybody up to take this over?

@github-actions github-actions bot removed the waiting label Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants