mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-07-02 00:08:33 +02:00
18 lines
634 B
YAML
18 lines
634 B
YAML
name: registry
|
|
services:
|
|
registry:
|
|
ports:
|
|
- 5000:5000
|
|
restart: always
|
|
container_name: registry
|
|
image: registry:2
|
|
volumes:
|
|
- '/share/docker_data/registry/auth:/auth'
|
|
# - /share/docker_data/registry/certs:/certs
|
|
- '/share/docker_registry/data:/var/lib/registry'
|
|
environment:
|
|
- 'REGISTRY_AUTH=htpasswd'
|
|
- 'REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm'
|
|
- 'REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd'
|
|
# - REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
|
|
# - REGISTRY_HTTP_TLS_KEY=/certs/domain.key |