https://github.com/ebeigarts/dokku-private-registry
Private docker registry server deployed as a dokku app
https://github.com/ebeigarts/dokku-private-registry
docker docker-registry dokku
Last synced: 7 months ago
JSON representation
Private docker registry server deployed as a dokku app
- Host: GitHub
- URL: https://github.com/ebeigarts/dokku-private-registry
- Owner: ebeigarts
- Created: 2017-02-15T22:17:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T19:56:52.000Z (almost 6 years ago)
- Last Synced: 2024-07-31T20:34:27.064Z (about 1 year ago)
- Topics: docker, docker-registry, dokku
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Install-anything-on-Dokku - Private Docker registry
README
# Dokku Private Registry
Private registry server deployed as a dokku app with HTTP Basic auth using
`AUTH_USER` and `AUTH_PASSWORD` env variables.## Setup
```bash
dokku apps:create my-registry
dokku config:set my-registry REGISTRY_HTTP_SECRET=$(openssl rand -hex 64)
dokku config:set my-registry AUTH_USER=user AUTH_PASSWORD=$(openssl rand -hex 16)
dokku storage:mount my-registry /var/lib/dokku/data/storage/my-registry:/var/lib/registry
dokku ps:set-restart-policy my-registry unless-stopped
dokku domains:add my-registry my-registry.example.com
dokku letsencrypt my-registry
```## Deploy
```bash
git remote add dokku dokku@dokku.example.com:my-registry
git push dokku master
```## Test
```bash
docker login -u user -p password my-registry.example.comdocker pull busybox:latest
docker tag busybox:latest my-registry.example.com/user/busybox:latest
docker push my-registry.example.com/user/busybox:latest
docker rmi busybox:latest my-registry.example.com/user/busybox:latest
docker pull my-registry.example.com/user/busybox:latest
```## Garbage Collect
```bash
dokku run my-registry /bin/registry garbage-collect /app/config.yml
```