-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
127 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Docker Registry Static as standalone example | ||
|
||
You can set up the static user interface as standalone in several ways. | ||
|
||
If you want to populate your registry, use `populate.sh` script. | ||
The interface will be accessible with <http://localhost>. | ||
Your docker registry will be accessible with <http://localhost:5000>. | ||
|
||
The simplest way is with `simple.yml` docker-compose file. | ||
|
||
```sh | ||
docker-compose -f simple.yml up -d | ||
./populate.sh | ||
``` | ||
|
||
You can add some credentials to access your registry wit `credentials.yml` docker-compose file. | ||
Credentials for this example are login: `registry` and password: `ui` using bcrypt. | ||
|
||
```sh | ||
docker-compose -f credentials.yml up -d | ||
./populate.sh | ||
``` |
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,20 @@ | ||
version: '2.0' | ||
services: | ||
registry: | ||
image: registry:2.6.2 | ||
ports: | ||
- 5000:5000 | ||
volumes: | ||
- ./registry-data:/var/lib/registry | ||
- ./registry-config/credentials.yml:/etc/docker/registry/config.yml | ||
- ./registry-config/htpasswd:/etc/docker/registry/htpasswd | ||
|
||
ui: | ||
image: joxit/docker-registry-ui:static | ||
ports: | ||
- 80:80 | ||
environment: | ||
- REGISTRY_TITLE=My Private Docker Registry | ||
- URL=http://localhost:5000 | ||
depends_on: | ||
- registry |
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,17 @@ | ||
#!/bin/bash | ||
|
||
docker tag joxit/docker-registry-ui:static localhost:5000/joxit/docker-registry-ui:static | ||
docker tag joxit/docker-registry-ui:static localhost:5000/joxit/docker-registry-ui:0.3 | ||
docker tag joxit/docker-registry-ui:static localhost:5000/joxit/docker-registry-ui:0.3.0 | ||
docker tag joxit/docker-registry-ui:static localhost:5000/joxit/docker-registry-ui:0.3.0-static | ||
docker tag joxit/docker-registry-ui:static localhost:5000/joxit/docker-registry-ui:0.3-static | ||
|
||
docker push localhost:5000/joxit/docker-registry-ui | ||
|
||
docker tag registry:2.6.2 localhost:5000/registry:latest | ||
docker tag registry:2.6.2 localhost:5000/registry:2.6.2 | ||
docker tag registry:2.6.2 localhost:5000/registry:2.6 | ||
docker tag registry:2.6.2 localhost:5000/registry:2.6.0 | ||
docker tag registry:2.6.2 localhost:5000/registry:2 | ||
|
||
docker push localhost:5000/registry |
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,25 @@ | ||
version: 0.1 | ||
log: | ||
fields: | ||
service: registry | ||
storage: | ||
delete: | ||
enabled: true | ||
cache: | ||
blobdescriptor: inmemory | ||
filesystem: | ||
rootdirectory: /var/lib/registry | ||
http: | ||
addr: :5000 | ||
headers: | ||
X-Content-Type-Options: [nosniff] | ||
Access-Control-Allow-Origin: ['http://localhost'] | ||
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE'] | ||
Access-Control-Allow-Headers: ['Authorization'] | ||
Access-Control-Max-Age: [1728000] | ||
Access-Control-Allow-Credentials: [true] | ||
Access-Control-Expose-Headers: ['Docker-Content-Digest'] | ||
auth: | ||
htpasswd: | ||
realm: basic-realm | ||
path: /etc/docker/registry/htpasswd |
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 @@ | ||
registry:$2y$11$1bmuJLK8HrQl5ACS/WeqRuJLUArUZfUcP2R23asmozEpfN76.pCHy |
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,21 @@ | ||
version: 0.1 | ||
log: | ||
fields: | ||
service: registry | ||
storage: | ||
delete: | ||
enabled: true | ||
cache: | ||
blobdescriptor: inmemory | ||
filesystem: | ||
rootdirectory: /var/lib/registry | ||
http: | ||
addr: :5000 | ||
headers: | ||
X-Content-Type-Options: [nosniff] | ||
Access-Control-Allow-Origin: ['http://localhost'] | ||
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE'] | ||
Access-Control-Allow-Headers: ['Authorization'] | ||
Access-Control-Max-Age: [1728000] | ||
Access-Control-Allow-Credentials: [true] | ||
Access-Control-Expose-Headers: ['Docker-Content-Digest'] |
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,19 @@ | ||
version: '2.0' | ||
services: | ||
registry: | ||
image: registry:2.6.2 | ||
ports: | ||
- 5000:5000 | ||
volumes: | ||
- ./registry-data:/var/lib/registry | ||
- ./registry-config/simple.yml:/etc/docker/registry/config.yml | ||
|
||
ui: | ||
image: joxit/docker-registry-ui:static | ||
ports: | ||
- 80:80 | ||
environment: | ||
- REGISTRY_TITLE=My Private Docker Registry | ||
- URL=http://localhost:5000 | ||
depends_on: | ||
- registry |