registry/docs/deploying.md
Mary Anthony 636a19b212 Retooling to allow for docs build
Adding docs build to the Makefile
Adding in Sven's changes to the Makefile
Removing DS_store file
Updating per Stephen's comments
Update with Stephen's final comment

Signed-off-by: Mary Anthony <mary@docker.com>
2015-04-03 14:55:24 -07:00

1.5 KiB

Deploying

TODO(stevvooe): This should discuss various deployment scenarios for production-ready deployments. These may be backed by ready-made docker images but this should explain how they were created and what considerations were present.

Middleware Configuration

This section describes how to configure storage middleware in the registry to enable layers to be served via a CDN, thus reducing requests to the storage layer. Currently Amazon Cloudfront is supported and must be used in conjunction with the S3 storage driver.

Cloudfront

Parameters

name: The name of the storage middleware. Currently cloudfront is an accepted value.

disabled: This can be set to false to easily disable the middleware.

options : A set of key/value options to configure the middleware:

  • baseurl : The cloudfront base URL
  • privatekey : The location of your AWS private key on the filesystem
  • keypairid : The ID of your Cloudfront keypair.
  • duration : The duration in minutes for which the URL is valid. Default is 20.

Note: Cloudfront keys exist separately to other AWS keys. See here for more information.

Example

middleware:
    storage:
        - name: cloudfront
          disabled: false
          options:
             baseurl: http://d111111abcdef8.cloudfront.net
             privatekey: /path/to/asecret.pem
             keypairid: asecret
             duration: 60