Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

joseluisq/envoy-docker-registry

Repository files navigation

Envoy / Docker Registry Docker Cloud Build Status

Envoy / Alpine and Docker Registry x86_64 image.

Overview

This image contains Envoy and Docker Registry binaries as well as Alpine x86_64 for using it as an Envoy Service together with your Envoy Proxy.

Usage

docker run --rm -it joseluisq/envoy-docker-registry:latest

Dockerfile

You can also use the image as a base for your own Dockerfile:

FROM joseluisq/envoy-docker-registry:latest

Docker Compose

Below a Front Proxy example using docker-registry as an Envoy service:

version: "3.3"

services:
  # Envoy proxy
  front-proxy:
    image: envoyproxy/envoy:latest
    command: /usr/local/bin/envoy -c /etc/envoy-front-proxy.yaml --service-cluster front-proxy
    volumes:
      - ./front-proxy.envoy.yaml:/etc/envoy-front-proxy.yaml
    networks:
      - envoymesh
    ports:
      - "80:80"
      - "8001:8001"

  # Envoy Service
  docker-registry:
    restart: unless-stopped
    image: joseluisq/envoy-docker-registry:latest
    environment:
      # Docker Registry env variable
      - REGISTRY_HTTP_ADDR=0.0.0.0:5000
      # Envoy service name
      - SERVICE_NAME=docker_registry
    volumes:
      - registry_data:/var/lib/registry
      - ./docker-registry.envoy.yaml:/etc/envoy-service.yaml
    networks:
      envoymesh:
        aliases:
          - docker_registry

volumes:
  registry_data:

networks:
  envoymesh:
    external:
      name: envoymesh

Options

Envoy

  • SERVICE_NAME : The name of the Envoy service.

Docker Registry

All configuration variables like REGISTRY_HTTP_ADDR, etc.

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2019 Jose Quintana