-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
88 lines (79 loc) · 1.92 KB
/
docker-compose.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
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.5'
services:
k8s.gcr.io:
image: registry:2
hostname: k8s.gcr.io
container_name: k8s.gcr.io
environment:
REGISTRY_HTTP_ADDR: 0.0.0.0:80
REGISTRY_STORAGE_DELETE_ENABLED: "true"
volumes:
- vol-registries:/var/lib/registry
networks:
- net-registries
gcr.io:
image: registry:2
hostname: gcr.io
container_name: gcr.io
environment:
REGISTRY_HTTP_ADDR: 0.0.0.0:80
REGISTRY_STORAGE_DELETE_ENABLED: "true"
volumes:
- vol-registries:/var/lib/registry
networks:
- net-registries
quay.io:
image: registry:2
hostname: quay.io
container_name: quay.io
environment:
REGISTRY_HTTP_ADDR: 0.0.0.0:80
REGISTRY_STORAGE_DELETE_ENABLED: "true"
volumes:
- vol-registries:/var/lib/registry
networks:
- net-registries
mr.io:
image: registry:2
hostname: mr.io
container_name: mr.io
environment:
# REGISTRY_HTTP_ADDR: 0.0.0.0:80
REGISTRY_STORAGE_DELETE_ENABLED: "true"
ports:
- "5000:5000"
volumes:
- vol-registries:/var/lib/registry
networks:
- net-registries
docker.io:
image: registry:2
hostname: registry-1.docker.io
container_name: registry-1.docker.io
environment:
REGISTRY_HTTP_ADDR: 0.0.0.0:443
REGISTRY_STORAGE_DELETE_ENABLED: "true"
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/registry-1.docker.io.crt
REGISTRY_HTTP_TLS_KEY: /certs/registry-1.docker.io.key
volumes:
- ./install/certs:/certs
- vol-registries:/var/lib/registry
networks:
- net-registries
socat:
image: alpine/socat
command:
tcp-listen:443,fork tcp-connect:registry-1.docker.io:443
ports:
- "443:443"
networks:
- net-registries
volumes:
vol-registries:
name: vol-registries
external: true
networks:
net-registries:
name: net-registries
driver: bridge
external: true