Skip to content

Stouts/Stouts.docker-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stouts.docker-registry

Ansible role to install and start registry

Variables

registry_enabled: yes

registry_env: {}
registry_home: /opt/registry
registry_image: "registry:2"
registry_auth_users: [] # [{name: name, password: password}]
registry_env_auth:
  REGISTRY_AUTH: htpasswd
  REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
  REGISTRY_AUTH_HTPASSWD_PATH: /var/lib/registry/.htpasswd
registry_volumes: ["{{registry_home}}:/var/lib/registry"]

registry_listen: 127.0.0.1
registry_local_host: https://localhost:5000
registry_port: 5000
registry_ports: ["{{registry_listen}}:{{registry_port}}:5000"]
registry_networks: []

registry_net: bridge
registry_nginx: no
registry_nginx_port: "{{ registry_ssl and 443 or 80 }}"
registry_nginx_servername: "{{inventory_hostname}}"
registry_nginx_auth: no

registry_ssl: no
registry_ssl_dir: "{{registry_home}}/ssl"
registry_ssl_crt: "{{registry_ssl_dir}}/cert.pem"
registry_ssl_key: "{{registry_ssl_dir}}/key.pem"

Usage

Add Stouts.docker-registry to your roles and set vars in your playbook file.

Example:

- hosts: all

  roles:
    - Stouts.docker
    - Stouts.docker-registry

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role to setup and run docker-registry

Resources

License

Stars

Watchers

Forks

Packages

No packages published