-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yaml
66 lines (64 loc) · 1.41 KB
/
docker-compose.yaml
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
version: '2'
services:
local:
container_name: reg-local
image: findsec/registry-proxy:latest
restart: always
environment:
- DELETE_ENABLED=true
volumes:
- ~/data/registry:/var/lib/registry
ports:
- 5000:5000
networks:
- registry-net
gcr:
container_name: reg-gcr
image: findsec/registry-proxy:latest
restart: always
environment:
- PROXY_REMOTE_URL=https://gcr.io
volumes:
- ~/data/registry:/var/lib/registry
networks:
- registry-net
k8s-gcr:
container_name: reg-k8s-gcr
image: findsec/registry-proxy:latest
restart: always
environment:
- PROXY_REMOTE_URL=https://k8s.gcr.io
volumes:
- ~/data/registry:/var/lib/registry
networks:
- registry-net
ui:
container_name: reg-ui
image: findsec/registry-ui:latest
restart: always
links:
- local:reg-local
environment:
- REGISTRY_TITLE=My Private Docker Registry
- REGISTRY_URL=http://reg-local:5000
- DELETE_IMAGES=true
networks:
- registry-net
nginx:
container_name: reg-nginx
image: nginx:alpine
restart: always
ports:
- 80:80
- 443:443
links:
- ui:reg-ui
- gcr:reg-gcr
- k8s-gcr:reg-k8s-gcr
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./cert:/etc/nginx/ssl
networks:
- registry-net
networks:
registry-net: