Docker Registry
Posted
A container registry is a stateless, highly scalable central space for storing and distributing container images.
# file: `docker-compose.yml`
services:
registry:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/registry:${HONEYPI_REGISTRY_VERSION:-2}
container_name: registry
environment:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
volumes:
- ${HONEYPI_DATA}/registry/data:/data
restart: unless-stopped
ports:
- ${HONEYPI_REGISTRY_PORT:-5000}:5000
labels:
- traefik.enable=${HONEYPI_REGISTRY_TRAEFIK_ENABLE:-false}
- traefik.http.routers.registry.rule=Host(`${HONEYPI_REGISTRY_HOST}`)
- traefik.http.routers.registry.entrypoints=websecure
- traefik.http.routers.registry.tls.certresolver=resolver
- traefik.http.routers.registry.service=registry
- traefik.http.services.registry.loadbalancer.server.port=5000