sysfiles/opt/registry/docker-compose.yml

20 lines
413 B
YAML

version: "3.0"
services:
registry:
container_name: registry
image: registry:2.8.1
restart: unless-stopped
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
REGISTRY_AUTH_HTPASSWD_PATH: /registry.password
volumes:
- data:/var/lib/registry
- ./registry.password:/registry.password
ports:
- "5000:5000"
volumes:
data: