From 132fa8363a9a70a6cdb5d7e9181cd348847d4b59 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 23 Feb 2025 22:45:38 -0600 Subject: [PATCH] docs: add Docker Compose volume mount configuration guide --- .../content/docs/core/troubleshooting.mdx | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/apps/docs/content/docs/core/troubleshooting.mdx b/apps/docs/content/docs/core/troubleshooting.mdx index a5ae468..173c5a2 100644 --- a/apps/docs/content/docs/core/troubleshooting.mdx +++ b/apps/docs/content/docs/core/troubleshooting.mdx @@ -155,3 +155,30 @@ export default defineConfig({ - **Other Frameworks**: Check your framework's documentation for network interface configuration Remember to deploy again your application after making these changes for them to take effect. + +## Docker Compose Volume Mounts + +When using Docker Compose, you can configure volume mounts in your `docker-compose.yml` file: + +```yaml +volumes: + - my-database:/var/lib/mysql +``` + +### Creating Configuration Files + +If you need to create configuration files before deploying your compose setup: + +1. Go to Advanced -> Mounts +2. Create a new File Mount +3. Add your configuration content in the content field +4. Specify the file path for your configuration + +Note: All File Mounts are automatically created in the `/files` directory. For example, if you create a file named `my-config.json`, it will be available at `/files/my-config.json`. + +You can then reference this configuration file in your `docker-compose.yml`: + +```yaml +volumes: + - ../files/my-config.json:/etc/my-app/config +```