Just-in-time file mounts
Mount files on your running Docker containers.
Last updated
Was this helpful?
Mount files on your running Docker containers.
Last updated
Was this helpful?
Using Release's just-in-time file mounts, you can mount small files as volumes on your containers.
To view or change your just-in-time file mounts, navigate to App Settings, scroll down to Advanced Settings, and click on Just-in-time file mounts.
This is a useful way to add application-wide configuration to instances at runtime, or to add small data files to your containers, without the need to check these files into your repository.
Just-in-time file mounts can be used to replace volume mounts that map configuration files from a host to a container in a docker-compose file.
Go to Settings in your application.
Click on File Mounts.
Enter the location to mount the file in your container. e.g., /app/data/
.
Select the file from your computer by clicking on Choose File.
Select at least one service from the list. The file will be mounted in selected services' containers.
Optional: Select "Mark as Secret" to hide the file's contents in Release's UI.
Click Create File Mount to add your file mount.
The Create File Mount button is enabled only once you've entered a mount path, selected a file, and selected at least one service.
Uploaded just-in-time file mounts are immutable. To change a mounted file, delete the file and upload a new one.
Click the delete icon next to the file you want to delete.
If the file mount has not been marked as secret, you can view its data by clicking the View button next to the file.
If the file mount has been marked as secret, the View button will be disabled.
Just-in-time file mounts are limited to 1 MB each. For anything bigger, consider using or Release's .
Release creates a to mount just-in-time file mounts as volumes on your containers just as they start up.