Skip to content

Add volume for entire root_project to fix migration version empty folder #90

@DominikCywinski

Description

@DominikCywinski

In what type of project did the bug occur?
api-microservice

Describe the bug
The Docker Compose configuration doesn't mount the entire project as a volume. When migrations are generated inside the container, they only exist in the container filesystem and are not persisted to the host. This results in an empty migrations/versions folder locally.

To Reproduce

  1. Generate template with default options
  2. Run migration generation command in container
  3. Check local migrations/versions folder

Expected result
Migrations generated inside the container should be visible in the local filesystem so they can be committed to version control.

Actual result
Empty migrations/versions folder

Suggested solution
Add the following volume mounts to docker-compose

volumes:
  - .:/root_project
  - /root_project/.venv

Environment (please complete the following information):

  • OS: Windows 11
  • Execution method: docker
  • Python version: 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions