-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprivate-registry.yml
40 lines (38 loc) · 1.05 KB
/
private-registry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.3'
services:
pozos-registry:
image: registry:2.8.1
container_name: pozos-registry
restart: always
ports:
- "5000:5000"
volumes:
- /opt/docker/registry:/var/lib/registry
- ./registry/auth:/auth
environment:
- REGISTRY_STORAGE_DELETE_ENABLED=true
- REGISTRY_AUTH=htpasswd
- "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm"
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
command:
- /bin/sh
- -c
- 'apk add --no-cache apache2-utils && htpasswd -Bbn pozos pozos > /auth/htpasswd && registry serve /etc/docker/registry/config.yml'
networks:
- pozos-registry-network
frontend-registry:
image: joxit/docker-registry-ui:2
container_name: frontend-registry
depends_on:
- pozos-registry
ports:
- "8080:80"
environment:
- NGINX_PROXY_PASS_URL=http://pozos-registry:5000
- DELETE_IMAGES=true
- REGISTRY_TITLE=Pozos
- SINGLE_REGISTRY=true
networks:
- pozos-registry-network
networks:
pozos-registry-network: