You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Girish Ramakrishnan e4fa8712dd add logo, description and various manifest fields 7 months ago
.dockerignore Initial import 8 months ago
CHANGELOG add logo, description and various manifest fields 7 months ago
CloudronManifest.json add logo, description and various manifest fields 7 months ago
DESCRIPTION.md add logo, description and various manifest fields 7 months ago
Dockerfile Use proxyAuth instead 7 months ago
LICENSE Update license 8 months ago
README Fix a typo 8 months ago
config-example.yml set storage directory to a subdirectory (to not mix with config file) 7 months ago
logo.png add logo, description and various manifest fields 7 months ago
start.sh Use proxyAuth instead 7 months ago

README

Adding a user is a simple affair:

htpasswd -bB /app/data/htpasswd username password

Demo user is: admin/admin

# Integration with GitLab

1. Create a volume named "registry-shared"
2. Attach volume name "registry-shared" to both GitLab and Docker Registry applications
3. Create folders "containers" and "certs" on the host filesystem inside the path that is assigned to
the "registry-shared" volume
4. Run the following commands inside the certs folder:


```
openssl req -nodes -newkey rsa:2048 -keyout registry-auth.key -out registry-auth.csr -subj "/CN=gitlab-issuer"
openssl x509 -in registry-auth.csr -out registry-auth.crt -req -signkey registry-auth.key -days 365000

```
5. Modify the config.yml (inside /app/data) of the Docker Registry app by altering the auth part to resemble the
following:

```
auth:
token:
realm: <GITLAB_HOST>/jwt/auth
service: container_registry
issuer: gitlab-issuer
rootcertbundle: /media/registry-shared/certs/registry-auth.crt

```

Change the 'rootdirectory' value inside the same config file to:
```
/media/registry-shared/containers
```

6. Modify the gitlab.yml (inside /app/data) of the GitLab app by adding the following lines (some of them
might already be there, so skip them):

```
production:
<<: *base

registry:
enabled: true
host: <DOCKER_REGISTRY_HOST>
port: 443
api_url: https://<DOCKER_REGISTRY_HOST>
key: /media/registry-shared/certs/registry-auth.key
path: /media/registry-shared/containers
issuer: gitlab-issuer
```

7. Restart both apps