Michael KutĂ˝ | 1764940 | 2016-03-19 23:57:43 +0100 | [diff] [blame^] | 1 | parameters: |
2 | docker: | ||||
3 | compose: | ||||
4 | container: | ||||
5 | registry: | ||||
6 | restart: always | ||||
7 | image: registry:2 | ||||
8 | ports: | ||||
9 | - 5000:5000 | ||||
10 | environment: | ||||
11 | REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt | ||||
12 | REGISTRY_HTTP_TLS_KEY: /certs/domain.key | ||||
13 | REGISTRY_AUTH: htpasswd | ||||
14 | REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd | ||||
15 | REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm | ||||
16 | volumes: | ||||
17 | - /path/data:/var/lib/registry | ||||
18 | - /etc/certs:/certs | ||||
19 | - /path/auth:/auth |