-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
executable file
·166 lines (153 loc) · 4.16 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
restart: always
kafka:
image: wurstmeister/kafka:2.11-2.0.1
ports:
- "9092:9092"
environment:
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime
depends_on:
- zookeeper
restart: always
api:
image: sodafoundation/crystal-api
volumes:
- /etc/ssl/certs:/etc/ssl/certs
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./examples/crystal.conf:/etc/crystal/crystal.conf
ports:
- 8089:8089
environment:
- MICRO_SERVER_ADDRESS=:8089
- MICRO_REGISTRY=mdns
- OS_AUTH_AUTHSTRATEGY=keystone
- OS_AUTH_URL=http://$HOST_IP/identity
- OS_USER_DOMIN_ID=Default
- OS_USERNAME=opensds
- OS_PASSWORD=opensds@123
- OS_PROJECT_NAME=service
- TRANSFER_SPEED_MIN=10 #Bytes/Sec
- SVC_FLAG=ctrl
restart: always
s3api:
image: sodafoundation/crystal-api
volumes:
- /etc/ssl/certs:/etc/ssl/certs
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./examples/crystal.conf:/etc/crystal/crystal.conf
ports:
- 8090:8090
environment:
- MICRO_SERVER_ADDRESS=:8090
- MICRO_REGISTRY=mdns
- OS_AUTH_AUTHSTRATEGY=keystone
- OS_AUTH_URL=http://$HOST_IP/identity
- OS_USER_DOMIN_ID=Default
- OS_USERNAME=opensds
- OS_PASSWORD=opensds@123
- OS_PROJECT_NAME=service
- TRANSFER_SPEED_MIN=10 #Bytes/Sec
- SVC_FLAG=s3
restart: always
backend:
image: sodafoundation/crystal-backend
environment:
- MICRO_REGISTRY=mdns
- DB_HOST=datastore:27017
volumes:
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./examples/crystal.conf:/etc/crystal/crystal.conf
depends_on:
- datastore
restart: always
redis:
image: redis
container_name: redis
command: redis-server
ports:
- "6379:6379"
restart: always
aksk:
image: sodafoundation/crystal-aksk
environment:
- MICRO_REGISTRY=mdns
- IAM_HOST=$HOST_IP
volumes:
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./examples/crystal.conf:/etc/crystal/crystal.conf
metadata:
image: sodafoundation/crystal-metadata
depends_on:
- keydb
environment:
- MICRO_REGISTRY=mdns
- DB_HOST=datastore:27017
# use container-name of keydb:container port of keydb as the value
- KEY_DB_URI=keydb:6380
volumes:
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./examples/crystal.conf:/etc/crystal/crystal.conf
restart: always
keydb:
image: eqalpha/keydb:x86_64_v6.2.2
container_name: keydb
ports:
- "6380:6380"
volumes:
- ./examples/keydb.conf:/etc/keydb/keydb.conf
restart: always
s3:
image: sodafoundation/crystal-s3
environment:
- MICRO_REGISTRY=mdns
- DB_HOST=tidb:4000
# 0 means use user defined storage class, otherwise use default storage class.
- USE_DEFAULT_STORAGE_CLASS=1
volumes:
- /etc/localtime:/etc/localtime
- /var/log/crystal:/var/log/crystal
- ./s3/pkg/conf:/etc/crystal
- ./s3/pkg/datastore/yig/conf/:/etc/yig
- ./examples/crystal.conf:/etc/crystal/crystal.conf
- ./s3/pkg/conf/tidb.sql:/etc/config/tidb/tidb.sql
- ./s3/pkg/datastore/yig/conf/yig.sql:/etc/config/yig/yig.sql
depends_on:
- redis
- tidb
restart: always
datastore:
image: mongo
ports:
- 27017:27017
volumes:
- ./mongodb_data:/data/db
restart: always
tidb:
image: pingcap/tidb:v2.1.16
container_name: tidb
ports:
- "4000:4000"
- "10080:10080"
volumes:
- ./s3/tidbconf/tidb.toml:/tidb.toml:ro
- ./tidb_data:/tmp/tidb
command:
- --store=mocktikv
- --config=/tidb.toml
- -L=info
restart: always