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

Docker: make bind mounts of source code read only #3323

Merged
merged 4 commits into from
Mar 23, 2024

Conversation

Minnozz
Copy link

@Minnozz Minnozz commented Mar 18, 2024

The services don't need write access to the application source, except for the dev-tools container.

Make sure the static and images mount points exist as "empty" directories, since Docker can't create them any more in the read only volume. This should not cause problems for non-Docker setups, since only a .gitkeep file is added.

When running ./bw-dev up, no longer start the dev-tools container. It is only used with docker compose run, which spins up a new container anyway.

Except dev-tools, since it needs to be able to change the source.
… only

Otherwise the static_volume and media_volume can't be mounted there.
@mouse-reeve
Copy link
Member

I learned something new about docker! Thank you

@mouse-reeve mouse-reeve merged commit b508b4c into bookwyrm-social:main Mar 23, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants