created dockerrepo preparings
This commit is contained in:
15
roles/rproxy/templates/docker-compose.dockerrepo.yml.j2
Normal file
15
roles/rproxy/templates/docker-compose.dockerrepo.yml.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: registry:latest
|
||||
container_name: dockerrepo
|
||||
restart: always
|
||||
environment:
|
||||
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/dockerrepo.crt
|
||||
- REGISTRY_HTTP_TLS_KEY=/certs/dockerrepo.key
|
||||
volumes:
|
||||
- {{ dockerrepo_dir }}/repo:/var/lib/registry
|
||||
- {{ dockerrepo_dir }}/certs:/certs
|
||||
ports:
|
||||
- 5000:5000
|
||||
29
roles/rproxy/templates/dockerrepo.cnf.j2
Normal file
29
roles/rproxy/templates/dockerrepo.cnf.j2
Normal file
@@ -0,0 +1,29 @@
|
||||
[ req ]
|
||||
prompt = no
|
||||
distinguished_name = dockerrepo.{{ domain.stdout }}
|
||||
req_extensions = v3_req
|
||||
x509_extensions = v3_x509
|
||||
|
||||
|
||||
[ dockerrepo.{{ domain.stdout }} ]
|
||||
countryName = RU
|
||||
stateOrProvinceName = RU
|
||||
localityName = MSK
|
||||
organizationName = {{ domain.stdout }}
|
||||
organizationalUnitName = IT
|
||||
commonName = dockerrepo.{{ domain.stdout }}
|
||||
emailAddress = admin@{{ domain.stdout }}
|
||||
|
||||
[ v3_req ]
|
||||
basicConstraints = CA:false
|
||||
keyUsage = digitalSignature, keyEncipherment
|
||||
subjectAltName = @sans
|
||||
|
||||
[ v3_x509 ]
|
||||
basicConstraints = CA:false
|
||||
keyUsage = digitalSignature, keyEncipherment
|
||||
subjectAltName = @sans
|
||||
|
||||
[ sans ]
|
||||
DNS.1 = dockerrepo.{{ domain.stdout }}
|
||||
IP.1 = {{ IP.stdout }}
|
||||
Reference in New Issue
Block a user