Zack Williams | 65edc22 | 2018-01-30 18:52:30 -0700 | [diff] [blame] | 1 | --- |
| 2 | version: '2' |
| 3 | |
| 4 | services: |
| 5 | registry: |
| 6 | restart: always |
| 7 | image: {{ docker_registry_image }} |
| 8 | ports: |
| 9 | - {{ docker_registry_ext_port }}:5000 |
| 10 | environment: |
| 11 | REGISTRY_HTTP_TLS_CERTIFICATE: /certs/docker_registry.pem |
| 12 | REGISTRY_HTTP_TLS_KEY: /certs/docker_registry_key.pem |
| 13 | REGISTRY_HTTP_TLS_CLIENTCAS: "[ '/certs/ca_cert.pem' ]" |
| 14 | REGISTRY_HTTP_SECRET: {{ docker_registry_http_secret }} |
| 15 | volumes: |
| 16 | - {{ docker_registry_dir }}/data:/var/lib/registry |
| 17 | - {{ docker_registry_dir }}/certs:/certs |
| 18 | |