Default Monolith deployments store files on the local file system of the host that is running Monolith's Docker containers.
If you want to use an external file share, you will need to adjust the docker-compose.yml file to include configuration settings for the file share you would like to use.
To connect to a basic Windows file share, add the following configuration to the bottom of your docker-compose.yml file:
Replace your_username
, your_password
, your_domain
with the appropriate credentials for accessing the CIFS share. your_domain
is not required if your share does not have a specific domain, so you can omit this value.
Replace //<SHARE_IP_ADDRESS>/share
with the network path to your CIFS share, but append the "/data" location at the end.
To utilize this new volume, we need adjust the current volumes listed in each service block of the docker-compose.yml file.
The following demonstrates the final docker-compose.yml file once a CIFS share has been configured: