mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
docs: add documentation for watch paths feature in applications and Docker Compose
This commit is contained in:
@@ -1,3 +1,34 @@
|
||||
---
|
||||
title: Watch Paths
|
||||
description: Learn how to use watch paths in your application or docker compose.
|
||||
---
|
||||
|
||||
Watch paths are a feature that allows you to monitor specific directories or files for changes and automatically trigger actions when modifications occur.
|
||||
|
||||
## Overview
|
||||
|
||||
Watch paths functionality is available for both standalone applications and Docker Compose configurations. This feature helps automate deployments based on file changes in your repository.
|
||||
|
||||
## Supported Source Providers
|
||||
|
||||
The following source control providers are supported:
|
||||
|
||||
- GitHub
|
||||
- GitLab
|
||||
- Bitbucket
|
||||
- Git (works with Bitbucket, Github, and GitLab repositories)
|
||||
|
||||
## Basic Usage
|
||||
|
||||
Let's say you have a project with the following directory structure:
|
||||
|
||||
```
|
||||
my-app/
|
||||
├── src/
|
||||
│ ├── index.js
|
||||
├── public/
|
||||
```
|
||||
|
||||
By default, dokploy accepts an array of paths, allowing you to monitor multiple locations. For example:
|
||||
|
||||
- To trigger deployments when any file in the `src/` directory changes, use the pattern: `src/*`
|
||||
|
||||
Reference in New Issue
Block a user