21 lines
600 B
YAML
21 lines
600 B
YAML
version: '3.8'
|
|
|
|
volumes:
|
|
registry:
|
|
name: ${REGISTRY_VOLUME_NAME}
|
|
|
|
services:
|
|
registry:
|
|
container_name: ${REGISTRY_CONTAINER_NAME}
|
|
image: ${REGISTRY_IMAGE:-registry:2.8.0@sha256:c26590bcf53822a542e78fab5c88e1dfbcdee91c1882f4656b7db7b542d91d97}
|
|
restart: always
|
|
environment:
|
|
REGISTRY_AUTH: htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
|
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
|
REGISTRY_STORAGE_DELETE_ENABLED: "true"
|
|
volumes:
|
|
- registry:/var/lib/registry
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|