-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 902 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (27 loc) · 902 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
version: '3'
services:
registry:
container_name: docker-registry
image: registry:2
restart: always
ports:
- 5000:5000
environment:
- "REGISTRY_AUTH=htpasswd"
- "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd"
- "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm"
- "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt"
- "REGISTRY_HTTP_TLS_KEY=/certs/domain.key"
volumes:
- ./registry-volume:/var/lib/registry
- ./auth:/auth
- ./certs:/certs
#docker-registry-ui:
# container_name: docker-registry-ui
# image: konradkleine/docker-registry-frontend:v2
# restart: always
# ports:
# - 8080:80
# environment:
# ENV_DOCKER_REGISTRY_HOST: docker-registry
# ENV_DOCKER_REGISTRY_PORT: 5000