ConfigurationRegistriesGitLab
GHCR (Gitlab Container Registry)
The gitlab registry lets you configure GITLAB integration.

The gitlab registry lets you configure GITLAB integration.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_AUTHURL | 🔴 | Gitlab Authentication base url | https://gitlab.com | |
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_TOKEN | 🔴 | Gitlab Personal Access Token | ||
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_URL | 🔴 | Gitlab Registry base url | https://registry.gitlab.com |
Examples
Configure to access images from gitlab.com
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_GITLAB_PUBLIC_TOKEN=xxxxxdocker run \
-e DD_REGISTRY_GITLAB_PUBLIC_TOKEN="xxxxx" \
...
codeswhat/drydockConfigure to access images from self hosted gitlab instance
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_REGISTRY_GITLAB_PRIVATE_URL=https://registry.mygitlab.acme.com
- DD_REGISTRY_GITLAB_PRIVATE_AUTHURL=https://mygitlab.acme.com
- DD_REGISTRY_GITLAB_PRIVATE_TOKEN=xxxxxdocker run \
-e DD_REGISTRY_GITLAB_PRIVATE_URL="https://registry.mygitlab.acme.com"
-e DD_REGISTRY_GITLAB_PRIVATE_AUTHURL="https://mygitlab.acme.com"
-e DD_REGISTRY_GITLAB_PRIVATE_TOKEN="xxxxx" \
...
codeswhat/drydockHow to create a Gitlab Personal Access Token
Go to your Gitlab settings and open the Personal Access Token page
Open GitLab Personal Access Tokens
Enter the details of the token to be created
Choose an expiration time & appropriate scopes (read_registry is only needed for drydock) and generate.

Copy the token & use it as the DD_REGISTRY_GITLAB_TOKEN value
