Doxy is a Docker image which uses Nginx to serve as a proxy to secure your Docker private registry, adding SSL and HTTP Basic Auth
It is designed to work with a Docker registry running into another Docker container.
You'll need to have a private key and SSL certificate inside a directory like the following:
- First, run the docker registry container, giving it a name:
$ docker run \ -e SETTINGS_FLAVOR=local \ -e STORAGE_PATH=/registry/ \ -e SEARCH_BACKEND=sqlalchemy \ -p 5000:5000 \ --name docker-registry registry
- Run the Doxy container, linking it with the registry container.
$ docker run \ --link docker-registry:registry \ -v /somedir/ssl:/ssl \ -e USER=username \ -e PASS=my_secure_password \ -p 443:443 \ -p 80:8080 \ --name doxy zareone/doxy
As you see, the link alias must be registry in order to work.
This is a work in progress. These are some things that need work:
- Server name: pass it on
docker runvia -e flag, and replace in the corresponding nginx config file.
- Multiple users: currently, only one user can be created.