Add Docker registry service configuration with htpasswd authentication
This commit is contained in:
parent
4553936b53
commit
a952f68bdf
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,3 +45,4 @@ logs/
|
|||||||
# Local development overrides
|
# Local development overrides
|
||||||
docker-compose.override.yml
|
docker-compose.override.yml
|
||||||
compose.override.yml
|
compose.override.yml
|
||||||
|
htpasswd
|
||||||
25
nodes/heimdall/docker_registry/compose.yaml
Normal file
25
nodes/heimdall/docker_registry/compose.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry:2
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- REGISTRY_AUTH=htpasswd
|
||||||
|
- REGISTRY_AUTH_HTPASSWD_REALM=Registry
|
||||||
|
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
|
||||||
|
- REGISTRY_STORAGE_DELETE_ENABLED=true
|
||||||
|
volumes:
|
||||||
|
- /mnt/appdata/docker_registry/data:/var/lib/registry
|
||||||
|
- /mnt/appdata/docker_registry/auth:/auth
|
||||||
|
networks:
|
||||||
|
- proxy-net
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.registry.rule=Host(`registry.castaldifamily.com`)
|
||||||
|
- traefik.http.routers.registry.entrypoints=websecure
|
||||||
|
- traefik.http.routers.registry.tls.certresolver=cloudflare
|
||||||
|
- traefik.http.services.registry.loadbalancer.server.port=5000
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy-net:
|
||||||
|
name: proxy-net
|
||||||
|
external: true
|
||||||
Loading…
x
Reference in New Issue
Block a user