-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add documentation + example for DEFAULT_REGISTRIES and READ_ONL…
…Y_REGISTRIES
- Loading branch information
Showing
5 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Example for pull request #219 | ||
|
||
Basic usage for `DEFAULT_REGISTRIES` and `READ_ONLY_REGISTRIES`. | ||
|
||
Behaviors: | ||
- `DEFAULT_REGISTRIES`: | ||
- will set the list of registries in the localstorage when the localstorage is empty. | ||
- will overwrite the list of registries every time when `READ_ONLY_REGISTRIES=true` | ||
- `READ_ONLY_REGISTRIES`: | ||
- will remove dialog for Add and Remove registries | ||
|
||
These options works only when `SINGLE_REGISTRY=false` | ||
|
||
See [#219](https://github.com/Joxit/docker-registry-ui/pull/219) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '2' | ||
|
||
services: | ||
registry_1: | ||
image: registry:latest | ||
restart: always | ||
ports: | ||
- 5000:5000 | ||
container_name: registry_1 | ||
environment: | ||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: "['*']" | ||
REGISTRY_STORAGE_DELETE_ENABLED: 'true' | ||
volumes: | ||
- ./data:/var/lib/registry | ||
|
||
registry_2: | ||
image: registry:latest | ||
restart: always | ||
ports: | ||
- 5001:5000 | ||
container_name: registry_2 | ||
environment: | ||
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: "['*']" | ||
REGISTRY_STORAGE_DELETE_ENABLED: 'true' | ||
volumes: | ||
- ./data:/var/lib/registry | ||
|
||
ui: | ||
image: joxit/docker-registry-ui:latest | ||
restart: always | ||
container_name: registry-ui | ||
environment: | ||
- REGISTRY_TITLE=Private Docker Registry | ||
- DEFAULT_REGISTRIES=http://localhost:5000,http://localhost:5001 | ||
- DELETE_IMAGES=true | ||
- READ_ONLY_REGISTRIES=true | ||
- SINGLE_REGISTRY=false | ||
ports: | ||
- 80:80 |