docker-registry/docker-compose.yml

24 lines
668 B
YAML

# networks:
# db_registry:
# name: db_registry
services:
registry:
image: registry:2
container_name: registry
# user: 1000:1000
restart: always
environment:
- REGISTRY_AUTH=${REGISTRY_AUTH}
- REGISTRY_AUTH_HTPASSWD_REALM=${REGISTRY_AUTH_HTPASSWD_REALM}
- REGISTRY_AUTH_HTPASSWD_PATH=${REGISTRY_AUTH_HTPASSWD_PATH}
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=${REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY}
# networks:
# - db_registry
ports:
- 5000:5000
volumes:
# - /var/volumes/registry:/var/lib/registry
- /var/volumes/registry/data:/data
- /var/volumes/registry/auth:/auth