-
Notifications
You must be signed in to change notification settings - Fork 3
/
registry.yml
31 lines (27 loc) · 901 Bytes
/
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
version: '3.3'
services:
registry:
image: registry:2
networks:
- default
- ${TRAEFIK_NETWORK}
volumes:
- image-data:/var/lib/registry
deploy:
placement:
constraints:
- node.labels.${STACK_NAME}.image-data == true
labels:
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
- "traefik.http.routers.registry.rule=Host(`reg.${UI_DOMAIN?Variable UI_DOMAIN not set}`)"
- "traefik.http.services.registry.loadbalancer.server.port=5000"
- "traefik.http.routers.registry.entryPoints=web, websecure"
- "traefik.http.routers.registry.tls=true"
- "traefik.http.routers.registry.middlewares=IpWhiteList"
- "traefik.http.middlewares.IpWhiteList.ipwhitelist.sourcerange=${COMMON_IP_WHITELIST}"
volumes:
image-data:
networks:
traefik-public:
external: true