2020-06-01 09:42:30 +02:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
registry:
|
|
|
|
name: ${REGISTRY_VOLUME_NAME}
|
|
|
|
|
|
|
|
services:
|
|
|
|
registry:
|
|
|
|
container_name: ${REGISTRY_CONTAINER_NAME}
|
2022-02-22 15:55:18 +01:00
|
|
|
image: ${REGISTRY_IMAGE:-registry:2.8.0}
|
2020-06-01 09:42:30 +02:00
|
|
|
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
|