You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi
We're running Bitbucket in a Docker container (bitbucket-server:7.21.5) and expose the entire Bitbucket HOME to the host (to an NFS mount /mnt/atlassian/):
volumes:
- /mnt/atlassian/bitbucket:/var/atlassian/application-data/bitbucket
Now we want to move the caches/ directory to a different partition (not part of NFS because caches don't need to be backed up). This is also recommended on scaling-bitbucket-server:
It may be desirable to use a separate disk or partition mounted at
$BITBUCKET_HOME/caches
to allow for more disk space and to ensure cached packs don't fill up the same disk where other system data is stored
I could create a second volume of the 'caches' subdirectory, but this appears unconventional and therefore risky:
volumes:
- /mnt/atlassian/bitbucket:/var/atlassian/application-data/bitbucket
- /var/atlassian/bitbucket/caches:/var/atlassian/application-data/bitbucket/caches
Are there any recommendations on how to do this?
Is is safe to create a Docker volume of a directory that is already part of another volume?
Regards
Dominik