AI Transformation

Git Integration

Connect your GitLab repository to a Dokploy service to enable source-based deployments.

Connecting your GitLab repository to Dokploy allows the platform to pull your source code and build your application on every deployment.

Prerequisites


Part 1 — Register a GitLab OAuth Application (one-time setup)

This step is required once per Dokploy instance. It authorizes Dokploy to access repositories on code.vnggames.ai.

Step 1 — Open GitLab User Settings

Log in to code.vnggames.ai, click your avatar (top-right corner) to open the dropdown, then select Preferences.

GitLab avatar dropdown — select Preferences

In the left sidebar, navigate to Applications.

Step 2 — Create a New Application

On the Applications page, click Add new application.

GitLab User Settings — Applications page with Add new application button

Fill in the form:

FieldValue
NameAny name you prefer (e.g. Dokploy)
Redirect URIhttps://host.vnggames.ai/api/providers/gitlab/callback
Confidential✅ Checked
Scopesapi · ✅ read_user · ✅ read_repository

Add new application form — Name, Redirect URI, Confidential and Scopes filled in

Click Save application.

Step 3 — Copy the Credentials

GitLab will display the Application ID and Secret. Copy both — you will need them in Part 2.

Application created — Application ID and Secret displayed

The Secret is only shown once. Store it securely before leaving this page.


Part 2 — Connect Repository to Your Service

Step 1 — Configure Git Provider in Dokploy

Log in to host.vnggames.ai and go to SettingsGit, then click GitLab to open the configuration form.

In the left sidebar, go to SettingsGit. Click GitLab from the available providers.

Dokploy Settings — Git Providers page

Fill in the following fields with the credentials from Part 1:

FieldValue
NameAny name you prefer (e.g. Dokploy)
GitLab URLhttps://code.vnggames.ai
Redirect URIAuto-filled — https://host.vnggames.ai/api/providers/gitlab/callback
Application IDPaste from Part 1 – Step 3
Application SecretPaste from Part 1 – Step 3
Group NameYour GitLab group slug (e.g. my-team) — optional

Dokploy GitLab Provider form — fields filled in

Click Save. Dokploy will redirect you to GitLab to authorize — click Authorize.

Step 2 — Authorize the Provider

After saving, your GitLab provider will appear in the list with an Action Required badge. Click the authorize icon (↓) on the right to proceed to GitLab authorization.

Your provider appears with an Action Required badge — click the authorize icon on the right.

Dokploy Git Providers page — Action Required badge with authorize icon

GitLab will ask you to confirm access. Review the permissions, then click Authorize to grant Dokploy access to your repositories.

GitLab authorization page — Authorize Dokploy button

Step 3 — Configure the Service

Navigate to your project, open the service, then go to the General tab.

Under Provider, select GitLab and fill in the following fields:

FieldValue
GitLab AccountSelect the connected account
RepositorySelect your repository from code.vnggames.ai
BranchBranch to deploy from (e.g., main)
Build PathRoot directory of your app (default: /)

Service General tab — Provider set to GitLab with repo and branch selected

Scroll down to the Build Type section and select how your app should be built:

OptionWhen to use
NixpacksRecommended — auto-detects language and builds automatically
DockerfileUse if your repo has a custom Dockerfile
RailpackNew alternative to Nixpacks
StaticFor static sites served via NGINX

Service General tab — Build Type options

Click Save, then trigger a manual deploy to verify everything is connected correctly.

After connecting the repository, set up Auto Deploy via webhook to automatically redeploy on every git push.

On this page