-
Notifications
You must be signed in to change notification settings - Fork 1
/
registry.yml
76 lines (76 loc) · 1.8 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
registry1:
image: registry:2
ports:
- 5000:5000
volumes:
- registry1:/var/lib/registry
networks:
- traefik-public
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /run/secrets/registry_htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: eBL Docker Registry Realm
secrets:
- registry_htpasswd
configs:
-
source: registry_config
target: /etc/docker/registry/config.yml
deploy:
placement:
constraints:
- node.hostname == badwcai-ebl01
labels:
traefik.tags: traefik-public
traefik.docker.network: traefik-public
traefik.enable: 'true'
traefik.port: '5000'
traefik.frontend.rule: PathPrefix:/v2/
ui:
image: quiq/docker-registry-ui
ports:
- 8000:8000
networks:
- traefik-public
volumes:
- registry-ui:/opt/data
secrets:
- docker-registry-ui_admin_password
- basic_auth_users
configs:
-
source: docker-registry-ui_config
target: /opt/config.yml
deploy:
placement:
constraints:
- node.hostname == badwcai-ebl02
labels:
traefik.tags: traefik-public
traefik.docker.network: traefik-public
traefik.frontend.auth.basic.usersFile: /run/secrets/basic_auth_users
traefik.enable: 'true'
traefik.port: '8000'
traefik.frontend.rule: PathPrefix:/cluster/registry-ui/
volumes:
registry1:
driver: local
registry-ui:
driver: local
secrets:
registry_htpasswd:
external: true
docker-registry-ui_admin_password:
external: true
basic_auth_users:
external: true
configs:
docker-registry-ui_config:
external: true
registry_config:
external: true
networks:
traefik-public:
external: true