add docker registry
parent
f4a29ca356
commit
647d33c2a9
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Docker Registry Configuration
|
||||||
|
|
||||||
|
more details on: https://docs.docker.com/registry/deploying/
|
||||||
|
|
||||||
|
## Registry Usage
|
||||||
|
|
||||||
|
its really simply:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker pull ubuntu
|
||||||
|
|
||||||
|
docker tag ubuntu 00x097/ubuntu
|
||||||
|
|
||||||
|
docker push 0.0.0.0:5050/ubuntu
|
||||||
|
```
|
||||||
|
|
||||||
|
if you use https-portal, check out this:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker push docker-registry.tk/ubuntu
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
# https-portal:
|
||||||
|
# image: steveltn/https-portal:1
|
||||||
|
# container_name: https-portal
|
||||||
|
# restart: always
|
||||||
|
# environment:
|
||||||
|
# DOMAINS: docker-registry.tk -> http://docker-registry:5000
|
||||||
|
# ports:
|
||||||
|
# - 80:80
|
||||||
|
# - 443:443
|
||||||
|
# links:
|
||||||
|
# - docker-registry
|
||||||
|
# volumes:
|
||||||
|
# - ./volumes/https-nginx/cert:/var/lib/https-portal
|
||||||
|
# - ./volumes/https-nginx/logs:/var/log
|
||||||
|
|
||||||
|
|
||||||
|
docker-registry:
|
||||||
|
image: registry:2.8.1
|
||||||
|
container_name: docker-registry
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
REGISTRY_HTTP_ADDR: 0.0.0.0:5000
|
||||||
|
ports:
|
||||||
|
- 0.0.0.0:5050:5000
|
||||||
|
# - 5000
|
||||||
|
volumes:
|
||||||
|
- ./volumes/registry:/var/lib/registry
|
||||||
|
|
@ -13,6 +13,9 @@ services:
|
||||||
- 443:443
|
- 443:443
|
||||||
links:
|
links:
|
||||||
- rocket-chat
|
- rocket-chat
|
||||||
|
volumes:
|
||||||
|
- ./volumes/https-nginx/cert:/var/lib/https-portal
|
||||||
|
- ./volumes/https-nginx/logs:/var/log
|
||||||
|
|
||||||
rocket-chat:
|
rocket-chat:
|
||||||
image: rocket.chat:5.4.0
|
image: rocket.chat:5.4.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue