|
| 1 | +--- |
| 2 | +title: Providers |
| 3 | +description: Learn how to use providers in your application or docker compose. |
| 4 | +--- |
| 5 | + |
| 6 | +Dokploy offers several deployment methods, streamlining the process whether you're utilizing GitHub, any Git provider, Docker, or automated deployments. |
| 7 | + |
| 8 | +- GitHub |
| 9 | +- Gitlab |
| 10 | +- Bitbucket |
| 11 | +- Git |
| 12 | +- Docker (Only Applications) |
| 13 | +- Drag and Drop .zip (Only Applications) |
| 14 | +- Raw (Only Docker Compose) |
| 15 | + |
| 16 | +## GitHub, Gitlab, Bitbucket |
| 17 | + |
| 18 | +1. [Github](/docs/core/github) Guide. |
| 19 | +2. [Gitlab](/docs/core/gitlab) guide. |
| 20 | +3. [Bitbucket](/docs/core/bitbucket) guide. |
| 21 | + |
| 22 | +## Git |
| 23 | + |
| 24 | +For deployments from any Git repository, whether public or private, you can use either SSH or HTTPS: |
| 25 | + |
| 26 | +### Public Repositories (HTTPS) |
| 27 | + |
| 28 | +1. Enter the repository URL in `HTTPS URL`. |
| 29 | +2. Type the branch name. |
| 30 | +3. Click on `Save`. |
| 31 | + |
| 32 | +### Private Repositories |
| 33 | + |
| 34 | +For private repositories, is required to first create an SSH Key The Steps are almost similar for all providers. |
| 35 | + |
| 36 | +1. Go to [SSH Keys Section](/docs/core/ssh-keys) and click on `Create SSH Key`. |
| 37 | +2. Click on `Generate RSA SSH Key` and copy the `Public Key`. |
| 38 | +3. Go to your Git Provider, either Github, Gitlab, Bitbucket, Gitea or any other. |
| 39 | +4. Go to `Settings` and search for `SSH Keys`. |
| 40 | +5. Click on `Add SSH Key`. |
| 41 | +6. Paste the SSH Key and click on `Add Key`. |
| 42 | + |
| 43 | + |
| 44 | +You can then copy the SSH key and paste it into the settings of your account. |
| 45 | + |
| 46 | +This is for Github, but the same applies for Gitlab, Bitbucket, Gitea, etc. |
| 47 | + |
| 48 | +<ImageZoom |
| 49 | + src="/assets/private-repository.png" |
| 50 | + width={800} |
| 51 | + height={630} |
| 52 | + className="rounded-lg" |
| 53 | +/> |
| 54 | + |
| 55 | +This enables you to pull repositories from your private repository, a method consistent across nearly all providers, |
| 56 | +remember to use the SSH URL `[email protected]:user/repo.git` and not the HTTPS URL `https://github.com/user/repo.git`. |
| 57 | + |
| 58 | +## Docker |
| 59 | + |
| 60 | +For Docker deployments: |
| 61 | + |
| 62 | +- Provide a Docker image. For private repositories, enter the username and password. |
0 commit comments