mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
22 lines
631 B
YAML
22 lines
631 B
YAML
version: '2.4'
|
|
services:
|
|
registry:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kennylee/registry:2
|
|
container_name: 'docker-registry'
|
|
ports:
|
|
- 443:443
|
|
volumes:
|
|
- ./data/registry:/var/lib/registry
|
|
- ./certs:/certs:ro
|
|
restart: on-failure
|
|
environment:
|
|
- REGISTRY_HTTP_ADDR=0.0.0.0:443
|
|
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt
|
|
- REGISTRY_HTTP_TLS_KEY=/certs/registry.key
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '12m'
|
|
max-file: '5'
|
|
|