forked from HariSekhon/DevOps-Python-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistry-docker-compose.yml
More file actions
34 lines (31 loc) · 891 Bytes
/
registry-docker-compose.yml
File metadata and controls
34 lines (31 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# vim:ts=2:sts=2:sw=2:et
#
# Author: Hari Sekhon
# Date: 2017-09-12 17:27:50 +0200 (Tue, 12 Sep 2017)
#
# https://github.com/harisekhon/devops-python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
version: '2.2'
services:
pytools-registry-test:
image: registry:2
ports:
- 5000:5000
environment:
- REGISTRY_HTTP_ADDR=0.0.0.0:5000
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt
- REGISTRY_HTTP_TLS_KEY=/certs/registry.key
- REGISTRY_AUTH_HTPASSWD_PATH=/certs/registry.htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
volumes:
- .:/certs
networks:
- docker_registry
networks:
docker_registry: