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

Commit

Permalink
add options info
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Mar 4, 2019
1 parent fc95b14 commit e3d789b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Envoy / Docker Registry

> [Envoy / Alpine x86_64](https://www.docker.com/) and [Docker Registry x86_64](https://hub.docker.com/_/registry) image.
> [Envoy / Alpine x86_64](https://hub.docker.com/r/envoyproxy/envoy-alpine) and [Docker Registry x86_64](https://hub.docker.com/_/registry) image.
## Usage

Expand All @@ -18,15 +18,31 @@ FROM joseluisq/envoy-docker-registry:latest

### Docker Compose

Below a [Front Proxy](https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/front_proxy) example using `docker-registry` as an Envoy service:

```yml
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"

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
Expand All @@ -45,6 +61,16 @@ networks:
name: envoymesh
```

## Options

### Envoy

- `SERVICE_NAME` : The name of the Envoy service.

### Docker Registry

[All configuration variables](https://docs.docker.com/registry/configuration/) like `REGISTRY_HTTP_ADDR`, etc.

## Contributions

Feel free to send some [Pull request](https://github.com/joseluisq/envoy-docker-registry/pulls) or [issue](https://github.com/joseluisq/envoy-docker-registry/issues).
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
version: "3.3"

services:
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"

docker-registry:
restart: unless-stopped
image: joseluisq/envoy-docker-registry:latest
Expand Down

0 comments on commit e3d789b

Please sign in to comment.