Skip to content

Avoid bind-mounting code on non-dev setups #3633

Open
@frafra

Description

@frafra

volumes:
- .:/usr/src/app

The documentation says to use docker-compose up to deploy, but that means to bind mount local code directories on non-development setups, which is counterintuitive (doing a git pull on master would change the code without having rebuilt any image).

I would suggest keeping a different compose file for development images, which do not include code, but it fetches it by mounting the directories.

The logs directory could be mounted on a specific volume (or - even better - avoided entirely by printing errors on stderr #3636).

Metadata

Metadata

Assignees

No one assigned

    Labels

    containerizationissues that relate to containers infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions