forked from ninjasphere/sphere-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices-docker-compose.yml
149 lines (140 loc) · 3.67 KB
/
services-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
# sphere-stack services
#
# This is all the microservices which combine to make the sphere cloud.
#
# NOTE: You will want to reconfigure all the passwords in here and the test_sql.sql file.
#
# identity provider
douitsu:
image: ninjasphere/douitsu:6b1d73e
environment:
- DEBUG=*
- CACHE_URL=redis://redis
- DB_URL=mysql://douitsu:douitsu@mysql:3306/douitsu
- NODE_ENV=production
external_links:
- spherestack_sphereredis_1:redis
- spherestack_spheremysql_1:mysql
ports:
- "3333:3333"
expose:
- "3333"
# sphere activation service
activation:
image: ninjasphere/sphere-activation-service:90c74a0
environment:
- DEBUG=*
- USVC_CONFIG_ENV=docker
- NODE_ENV=development
- usvc_rpcService_signing_secret=NefofvigdadEjlien8Schyk8
- usvc_amqp_url=amqp://admin:ofjoHyibkaibHiammagsenun@rabbit:5672
external_links:
- spherestack_sphereredis_1:redis
- spherestack_spheremysql_1:mysql
- spherestack_sphererabbit_1:rabbit
ports:
- "5100:5100"
expose:
- "5100"
# sphere rest api service
apiservice:
image: ninjasphere/sphere-api-service:a13fb9f
environment:
- DEBUG=*
- USVC_CONFIG_ENV=docker
- NODE_ENV=development
- usvc_amqp_url=amqp://admin:ofjoHyibkaibHiammagsenun@rabbit:5672
- usvc_rpcService_signing_secret=NefofvigdadEjlien8Schyk8
- usvc_activationService_signing_secret=NefofvigdadEjlien8Schyk8
- usvc_modelStoreService_signing_secret=NefofvigdadEjlien8Schyk8
- usvc_sessions_secret=OjIakHisvaykafmoafOabFey
- usvc_oauth_callbackURL=http://apiservice:5200/auth/ninja/callback
- usvc_oauth_clientID=app_XX
- usvc_oauth_clientSecret=sk_XX
- usvc_sessions_secret=EcBetvabdigobejBararuch2
links:
- activation:activation
- douitsu:douitsu
- modelservice:modelservice
external_links:
- spherestack_sphereredis_1:redis
- spherestack_spheremysql_1:mysql
- spherestack_sphererabbit_1:rabbit
ports:
- "5200:5200"
expose:
- "5200"
# sphere rpc service
rpcservice:
image: ninjasphere/sphere-rpc-service:e4de51c
environment:
- DEBUG=*
- USVC_CONFIG_ENV=docker
- NODE_ENV=development
- usvc_amqp_url=amqp://admin:ofjoHyibkaibHiammagsenun@rabbit:5672
external_links:
- spherestack_sphereredis_1:redis
- spherestack_spheremysql_1:mysql
- spherestack_sphererabbit_1:rabbit
ports:
- "5900:5900"
expose:
- "5900"
# sphere model store service
modelservice:
image: ninjasphere/sphere-modelstore-service:2463a5e
environment:
- DEBUG=*
- USVC_CONFIG_ENV=docker
- NODE_ENV=development
- usvc_rpcService_signing_secret=NefofvigdadEjlien8Schyk8
external_links:
- spherestack_spherecouch_1:couchdb
ports:
- "5600:5600"
expose:
- "5600"
# sphere state service
stateservice:
image: ninjasphere/sphere-state-service:2a2b68c
environment:
- DEBUG=true
- REDIS_URL=redis://redis:6379
- RABBIT_URL=amqp://admin:ofjoHyibkaibHiammagsenun@rabbit:5672
external_links:
- spherestack_sphereredis_1:redis
- spherestack_sphererabbit_1:rabbit
ports:
- "6100:6100"
expose:
- "6100"
# sphere mqtt proxy
mqttproxy:
image: ninjablocks/mqtt-proxy:61ed6e3
environment:
- BACKEND_USER=admin
- BACKEND_PASS=ofjoHyibkaibHiammagsenun
external_links:
- spherestack_spheremysql_1:mysql
- spherestack_sphererabbit_1:rabbit
ports:
- "6300:6300"
expose:
- "6300"
# cache
spherehaproxy:
image: ninjablocks/haproxy:95d19f6
volumes:
- haproxy/:/haproxy-override
links:
- apiservice:apiservice
- douitsu:douitsu
- mqttproxy:mqttproxy
ports:
- "80:80"
- "443:443"
- "8883:8883"
expose:
- "80"
- "443"
- "8883:8883"