-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
116 lines (115 loc) · 4.33 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '2'
# starts 4 docker containers running minio server instances. Each
# minio server's web interface will be accessible on the host at port
# 9001 through 9004.
services:
ldap:
image: quay.io/minio/openldap:latest
ports:
- "389:389"
- "636:636"
environment:
LDAP_ORGANIZATION: "MinIO Inc."
LDAP_DOMAIN: "min.io"
LDAP_ADMIN_PASSWORD: "admin"
command: "--copy-service"
dex:
image: quay.io/minio/dex:latest
ports:
- "5556:5556"
environment:
DEX_CLIENT_REDIRECT_URI: "http://nginx:10000/oauth_callback"
DEX_ISSUER: "http://dex:5556/dex"
DEX_LDAP_SERVER: "ldap:389"
dex2:
image: quay.io/minio/dex:latest
ports:
- "5557:5557"
environment:
DEX_CLIENT_REDIRECT_URI: "http://nginx:10000/oauth_callback"
DEX_ISSUER: "http://dex2:5557/dex"
DEX_LDAP_SERVER: "ldap:389"
DEX_WEB_HTTP: "0.0.0.0:5557"
nginx:
image: nginx
ports:
- "9000:9000"
- "10000:10000"
volumes:
- "./nginx-lb.conf:/etc/nginx/nginx.conf:ro"
minio1:
image: local/minio:latest
ports:
- "9001:9000"
- "10001:10000"
volumes:
- "/tmp/sitea-1:/export"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_CI_CD: 1
MINIO_IDENTITY_OPENID_CONFIG_URL: "http://dex:5556/dex/.well-known/openid-configuration"
MINIO_IDENTITY_OPENID_CLIENT_ID: "minio-client-app"
MINIO_IDENTITY_OPENID_CLIENT_SECRET: "minio-client-app-secret"
MINIO_IDENTITY_OPENID_SCOPES: "openid,groups,email"
MINIO_IDENTITY_OPENID_REDIRECT_URI: "http://nginx:10000/oauth_callback"
MINIO_IDENTITY_OPENID_ROLE_POLICY: "consoleAdmin"
MINIO_IDENTITY_OPENID_DISPLAY_NAME: "Login via dex1"
command: server --console-address :10000 http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio2:
image: local/minio:latest
ports:
- "9002:9000"
- "10002:10000"
volumes:
- "/tmp/sitea-2:/export"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_CI_CD: 1
MINIO_IDENTITY_OPENID_CONFIG_URL: "http://dex:5556/dex/.well-known/openid-configuration"
MINIO_IDENTITY_OPENID_CLIENT_ID: "minio-client-app"
MINIO_IDENTITY_OPENID_CLIENT_SECRET: "minio-client-app-secret"
MINIO_IDENTITY_OPENID_SCOPES: "openid,groups,email"
MINIO_IDENTITY_OPENID_REDIRECT_URI: "http://nginx:10000/oauth_callback"
MINIO_IDENTITY_OPENID_ROLE_POLICY: "consoleAdmin"
MINIO_IDENTITY_OPENID_DISPLAY_NAME: "Login via dex1"
command: server --console-address :10000 http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio3:
image: local/minio:latest
ports:
- "9003:9000"
- "10003:10000"
volumes:
- "/tmp/sitea-3:/export"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_CI_CD: 1
MINIO_IDENTITY_OPENID_CONFIG_URL: "http://dex:5556/dex/.well-known/openid-configuration"
MINIO_IDENTITY_OPENID_CLIENT_ID: "minio-client-app"
MINIO_IDENTITY_OPENID_CLIENT_SECRET: "minio-client-app-secret"
MINIO_IDENTITY_OPENID_SCOPES: "openid,groups,email"
MINIO_IDENTITY_OPENID_REDIRECT_URI: "http://nginx:10000/oauth_callback"
MINIO_IDENTITY_OPENID_ROLE_POLICY: "consoleAdmin"
MINIO_IDENTITY_OPENID_DISPLAY_NAME: "Login via dex1"
command: server --console-address :10000 http://minio1/export http://minio2/export http://minio3/export http://minio4/export
minio4:
image: local/minio:latest
ports:
- "9004:9000"
- "10004:10000"
volumes:
- "/tmp/sitea-4:/export"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_CI_CD: 1
MINIO_IDENTITY_OPENID_CONFIG_URL: "http://dex:5556/dex/.well-known/openid-configuration"
MINIO_IDENTITY_OPENID_CLIENT_ID: "minio-client-app"
MINIO_IDENTITY_OPENID_CLIENT_SECRET: "minio-client-app-secret"
MINIO_IDENTITY_OPENID_SCOPES: "openid,groups,email"
MINIO_IDENTITY_OPENID_REDIRECT_URI: "http://nginx:10000/oauth_callback"
MINIO_IDENTITY_OPENID_ROLE_POLICY: "consoleAdmin"
MINIO_IDENTITY_OPENID_DISPLAY_NAME: "Login via dex1"
command: server --console-address :10000 http://minio1/export http://minio2/export http://minio3/export http://minio4/export