feat: Ajout du service de Registry

This commit is contained in:
2020-06-01 09:42:30 +02:00
parent 5ee693b8f3
commit afe28be81e
7 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
version: '3.8'
volumes:
registry:
name: ${REGISTRY_VOLUME_NAME}
services:
registry:
container_name: ${REGISTRY_CONTAINER_NAME}
image: ${REGISTRY_IMAGE}
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