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
[Bug] Docker compose, using local volume to sync folders removes all project files inside of the container #2064
Comments
This is due to how the Dockerfile is configured. It doesn't pull changes, each version is pre-built with the source code. As a result, binding the The only realistic workaround would be to check the directory on container start, and if it's empty, pull the files directly (perhaps using the respective tag as a version indicator), or print an error to the user informing them of the issue. The latter probably makes more context given the current build pipeline. |
I see, we could really use another way of deploying the app, that at least allows the update of the custom invoice PDF template,
i will try to pull the base code and build it locally, as the next step |
Guessing either permissions got a little screwy or the line-endings got messed up (mixing Windows & Linux). Either way, try giving this a go to verify the permissions didn't get messed up: I don't personally use docker so I can't comment on the best way to edit things, but it should certainly be doable AFAIK. |
@BelleNottelling I tried the commands to fix the permissions, but it didn't solve it. |
@moda20 for what it's worth, this structure does work for me. Just deploy the container, copy |
Describe the bug
when using docker compose to run the project, and when using the local volume sync in order to modify some features of the app, the project files inside of the container will be cleared. this issue is not present when using top level volumnes in the compose file.
here is the example with the issue :
here is the documentation compose file example (that works fine, but can't use ti to synchronize files between host and container)
How to reproduce
use the above compose files to observe the issue
Expected behavior
synchronized project files, where the container files will be synchronized to the host to enable easy change
Screenshots
No response
FOSSBilling version
latest docker image
FOSSBilling instance ID
No response
Module version
No response
Device
Desktop
Information
macOS 12.1
Chrome for mac
Additional context
No response
The text was updated successfully, but these errors were encountered: