feat: Remove docker registry
This commit is contained in:
parent
ea15f83eb6
commit
d921e18167
@ -1 +0,0 @@
|
||||
REGISTRY_HOST=registy.example.org
|
||||
2
registry/.gitignore
vendored
2
registry/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
.env
|
||||
registry/
|
||||
@ -1,9 +0,0 @@
|
||||
# About Registy
|
||||
|
||||
# How to setup
|
||||
|
||||
```bash
|
||||
mkdir -p registry/data
|
||||
docker run --rm -it httpd htpasswd -Bbn test test > ./registry/registry.password
|
||||
docker compose up -d
|
||||
```
|
||||
@ -1,31 +0,0 @@
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
services:
|
||||
registry:
|
||||
restart: always
|
||||
image: registry:latest
|
||||
environment:
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
|
||||
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
||||
volumes:
|
||||
- ./registry/registry.password:/auth/registry.password
|
||||
- ./registry/data:/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
- "traefik.http.services.registry.loadbalancer.server.port=5000"
|
||||
|
||||
- "traefik.http.routers.registry.entrypoints=web"
|
||||
- "traefik.http.routers.registry.middlewares=https-redirect@docker"
|
||||
- "traefik.http.routers.registry.rule=Host(`${REGISTRY_HOST}`)"
|
||||
|
||||
- "traefik.http.routers.registry-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.registry-https.tls=true"
|
||||
- "traefik.http.routers.registry-https.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.registry-https.rule=Host(`${REGISTRY_HOST}`)"
|
||||
networks:
|
||||
- web
|
||||
Loading…
x
Reference in New Issue
Block a user