kayobe/ansible/group_vars/all/docker-registry
Mark Goddard e187ad7955 Make docker registry network mode configurable
Adds a new flag, 'docker_registry_network_mode', which defaults to
'host'. This may be used to set the network mode of the Docker registry
container.

This is a follow up to I404dd52701426a10c2e92727bd52b7fd7112abf6, which
changed the network mode from the default of bridge to host. It allows
that change to be backported to stable branches, without modifying the
default value.

Change-Id: Ic8ec3bb98f8f016e1d089bf10bd0538264394241
2021-05-11 22:48:21 +02:00

42 lines
1.5 KiB
Plaintext

---
###############################################################################
# Docker registry configuration.
# Whether a docker registry is enabled.
docker_registry_enabled: False
# Dict of environment variables to provide to the docker registry container.
# This allows to configure the registry by overriding specific configuration
# options, as described at https://docs.docker.com/registry/configuration/
# For example, the registry can be configured as a pull through cache to Docker
# Hub by setting REGISTRY_PROXY_REMOTEURL to "https://registry-1.docker.io".
# Note that it is not possible to push to a registry configured as a
# pull through cache.
docker_registry_env: {}
# The network mode of the docker registry container. Default is 'host'.
docker_registry_network_mode: host
# The port on which the docker registry server should listen.
# NOTE: This is set to 4000 rather than the default of 5000 to avoid clashing
# with keystone.
docker_registry_port: 4000
# Name or path to use as the volume for the docker registry.
docker_registry_datadir_volume: docker_registry
# Whether to enable TLS for the registry.
docker_registry_enable_tls: false
# Path to a TLS certificate to use when TLS is enabled.
docker_registry_cert_path:
# Path to a TLS key to use when TLS is enabled.
docker_registry_key_path:
# Whether to enable basic authentication for the registry.
docker_registry_enable_basic_auth: false
# Path to a htpasswd formatted password store for the registry.
docker_registry_basic_auth_htpasswd_path: