version: '3.8' services: registry: build: context: . dockerfile: Dockerfile no-cache: true container_name: registry restart: unless-stopped expose: - "5000" volumes: - registry-data:/var/lib/registry - ./config.yml:/etc/docker/registry/config.yml networks: - registry-network networks: registry-network: driver: bridge volumes: registry-data: driver: local