12709a1c8b
Change-Id: If9669bb3286e25bb16ab09373e823b914b645f26
20 lines
559 B
YAML
20 lines
559 B
YAML
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
registry:
|
|
restart: always
|
|
image: registry:2
|
|
network_mode: host
|
|
environment:
|
|
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
|
|
REGISTRY_HTTP_TLS_KEY: /certs/domain.key
|
|
REGISTRY_AUTH: htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
|
volumes:
|
|
- /var/registry/data:/var/lib/registry
|
|
- /var/registry/certs:/certs
|
|
- /var/registry/auth:/auth
|