services/registry/docker-compose.yml

21 lines
528 B
YAML
Raw Normal View History

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