mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
update registry
This commit is contained in:
parent
4fe9202416
commit
93cfd55dc7
@ -3,41 +3,6 @@ registry
|
|||||||
|
|
||||||
[Registry][1] is the Docker toolset to pack, ship, store, and deliver content.
|
[Registry][1] is the Docker toolset to pack, ship, store, and deliver content.
|
||||||
|
|
||||||
## docker-compose.yml
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
version: "3.8"
|
|
||||||
services:
|
|
||||||
registry:
|
|
||||||
image: registry:2
|
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
volumes:
|
|
||||||
- /etc/docker/registry
|
|
||||||
- ./data:/var/lib/registry
|
|
||||||
- ./certs:/certs
|
|
||||||
- ./auth:/auth
|
|
||||||
environment:
|
|
||||||
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
|
|
||||||
- REGISTRY_HTTP_TLS_KEY=/certs/domain.key
|
|
||||||
- REGISTRY_AUTH=htpasswd
|
|
||||||
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
|
|
||||||
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
webui:
|
|
||||||
image: joxit/docker-registry-ui:2
|
|
||||||
ports:
|
|
||||||
- "5080:80"
|
|
||||||
environment:
|
|
||||||
- NGINX_PROXY_PASS_URL=http://registry:5000
|
|
||||||
- REGISTRY_TITLE=EasyPi Docker Registry
|
|
||||||
- DELETE_IMAGES=true
|
|
||||||
depends_on:
|
|
||||||
- registry
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
## Server Setup
|
## Server Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -52,6 +17,7 @@ proxy:
|
|||||||
remoteurl: https://registry-1.docker.io
|
remoteurl: https://registry-1.docker.io
|
||||||
username: username
|
username: username
|
||||||
password: password
|
password: password
|
||||||
|
ttl: 168h
|
||||||
^D
|
^D
|
||||||
>>> exit
|
>>> exit
|
||||||
$ docker-compose restart
|
$ docker-compose restart
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# See: https://docs.docker.com/registry/deploying/
|
# See:
|
||||||
|
# - https://distribution.github.io/distribution/about/deploying/
|
||||||
|
# - https://docs.docker.com/docker-hub/mirror/
|
||||||
#
|
#
|
||||||
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user