2023-05-08 13:35:22 +00:00
|
|
|
# networks:
|
|
|
|
# db_registry:
|
|
|
|
# name: db_registry
|
|
|
|
|
|
|
|
services:
|
|
|
|
registry:
|
|
|
|
image: registry:2
|
|
|
|
container_name: registry
|
|
|
|
# user: 1000:1000
|
|
|
|
restart: always
|
|
|
|
environment:
|
2023-05-08 13:47:53 +00:00
|
|
|
- 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}
|
2023-05-08 13:35:22 +00:00
|
|
|
# networks:
|
|
|
|
# - db_registry
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
volumes:
|
|
|
|
# - /var/volumes/registry:/var/lib/registry
|
|
|
|
- /var/volumes/registry/data:/data
|
|
|
|
- /var/volumes/registry/auth:/auth
|