name: rentaldrivego-registry-local

services:
  registry:
    image: registry:2
    restart: unless-stopped
    ports:
      - 5000:5000
    environment:
      REGISTRY_HTTP_ADDR: 0.0.0.0:5000
      REGISTRY_HTTP_RELATIVEURLS: "true"
      REGISTRY_HTTP_SECRET: ${REGISTRY_HTTP_SECRET:-change-me}
      REGISTRY_AUTH: htpasswd
      REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
      REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
      REGISTRY_STORAGE_DELETE_ENABLED: "true"
    volumes:
      - registry_local_data:/var/lib/registry
      - ./docker/registry/auth:/auth:ro

volumes:
  registry_local_data:
