Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. version: '2.1'
  2. services:
  3.  
  4. # certs:
  5. # image: nginx
  6. # restart: always
  7. # depends_on:
  8. # - apigw
  9. # ports:
  10. # - "80:80"
  11. # - "443:443"
  12. # volumes:
  13. # - /etc/letsencrypt:/certs
  14. # - ./certs/default.conf:/etc/nginx/conf.d/default.conf
  15.  
  16. history:
  17. image: dojot/history:0.3.0-nightly20180607
  18. restart: always
  19. depends_on:
  20. - mongodb
  21. environment:
  22. FALCON_SETTINGS_MODULE: 'history.settings.docker'
  23. logging:
  24. driver: json-file
  25. options:
  26. max-size: 100m
  27.  
  28. persister:
  29. image: dojot/persister
  30. restart: always
  31. depends_on:
  32. - mongodb
  33. - auth
  34. - kafka
  35. - data-broker
  36. environment:
  37. FALCON_SETTINGS_MODULE: 'history.settings.docker'
  38. logging:
  39. driver: json-file
  40. options:
  41. max-size: 100m
  42.  
  43. mongodb:
  44. image: "mongo:3.2"
  45. restart: always
  46. user: "mongodb"
  47. logging:
  48. driver: json-file
  49. options:
  50. max-size: 100m
  51.  
  52. mosca-redis:
  53. image: redis:alpine
  54. restart: always
  55. logging:
  56. driver: json-file
  57. options:
  58. max-size: 100m
  59.  
  60. iotagent-mqtt:
  61. image: dojot/iotagent-mosca:0.3.0-nightly20180607
  62. depends_on:
  63. - mosca-redis
  64. - kafka
  65. - data-broker
  66. - auth
  67. ports:
  68. - 1883:1883
  69. - 8883:8883
  70. restart: always
  71. logging:
  72. driver: json-file
  73. options:
  74. max-size: 100m
  75.  
  76. gui:
  77. image: dojot/gui:latest
  78. restart: always
  79. logging:
  80. driver: json-file
  81. options:
  82. max-size: 100m
  83.  
  84. # orion replacement component
  85. data-broker:
  86. image: dojot/data-broker
  87. restart: always
  88. depends_on:
  89. - kafka
  90. - data-broker-redis
  91. logging:
  92. driver: json-file
  93. options:
  94. max-size: 100m
  95.  
  96. data-broker-redis:
  97. image: redis:alpine
  98. restart: always
  99. logging:
  100. driver: json-file
  101. options:
  102. max-size: 100m
  103.  
  104. device-manager-redis:
  105. image: redis:alpine
  106. restart: always
  107. logging:
  108. driver: json-file
  109. options:
  110. max-size: 100m
  111.  
  112. device-manager:
  113. image: dojot/device-manager
  114. restart: always
  115. environment:
  116. # TODO: Fill these env variables with suitable values
  117. - DEV_MNGR_CRYPTO_PASS="kamehameHA"
  118. - DEV_MNGR_CRYPTO_IV=1234567890123456
  119. - DEV_MNGR_CRYPTO_SALT="shuriken"
  120. depends_on:
  121. - postgres
  122. - kafka
  123. - data-broker
  124. - device-manager-redis
  125. logging:
  126. driver: json-file
  127. options:
  128. max-size: 100m
  129.  
  130. image-manager:
  131. image: dojot/image-manager:latest
  132. restart: always
  133. depends_on:
  134. - postgres
  135. - minio
  136. logging:
  137. driver: json-file
  138. options:
  139. max-size: 100m
  140. environment:
  141. # TODO: The following should be unique for each environment
  142. S3ACCESSKEY: 9HEODSF6WQN5EZ39DM7Z
  143. S3SECRETKEY: fT5nAgHR9pkj0yYsBdc4p+PPq6ArjshcPdz0HA6W
  144.  
  145. minio:
  146. image:
  147. restart: always
  148. image: "minio/minio"
  149. logging:
  150. driver: json-file
  151. options:
  152. max-size: 100m
  153. environment:
  154. # TODO: The following should be unique for each environment
  155. MINIO_ACCESS_KEY: 9HEODSF6WQN5EZ39DM7Z
  156. MINIO_SECRET_KEY: fT5nAgHR9pkj0yYsBdc4p+PPq6ArjshcPdz0HA6W
  157. command: server /data
  158.  
  159. auth-redis:
  160. image: redis:alpine
  161. restart: always
  162. logging:
  163. driver: json-file
  164. options:
  165. max-size: 100m
  166.  
  167. auth:
  168. image: dojot/auth:latest
  169. restart: always
  170. depends_on:
  171. - apigw
  172. - postgres
  173. - auth-redis
  174. depends_on:
  175. postgres:
  176. condition: service_healthy
  177. environment:
  178. AUTH_DB_HOST: "postgres"
  179. AUTH_DB_USER: "kong"
  180. AUTH_KONG_URL: "http://apigw:8001"
  181. AUTH_CACHE_HOST: "auth-redis"
  182. # This is used to select the type of cache to be used. Allowed values are "redis" or "nocache"
  183. AUTH_CACHE_NAME: "redis"
  184. logging:
  185. driver: json-file
  186. options:
  187. max-size: 100m
  188.  
  189. postgres:
  190. image: "postgres:9.4-alpine"
  191. restart: always
  192. environment:
  193. POSTGRES_USER: "kong"
  194. POSTGRES_DB: "kong"
  195. healthcheck:
  196. test: ["CMD", "pg_isready", "-U", "postgres"]
  197. interval: 10s
  198. timeout: 5s
  199. retries: 5
  200. logging:
  201. driver: json-file
  202. options:
  203. max-size: 100m
  204.  
  205. kong-migration:
  206. image: dojot/kong:latest
  207. depends_on:
  208. postgres:
  209. condition: service_healthy
  210. environment:
  211. - KONG_DATABASE=postgres
  212. - KONG_PG_HOST=postgres
  213. command: kong migrations up
  214. restart: on-failure
  215.  
  216. apigw:
  217. image: dojot/kong:latest
  218. restart: always
  219. depends_on:
  220. postgres:
  221. condition: service_healthy
  222. kong-migration:
  223. condition: service_started
  224. ports:
  225. - "8000:8000"
  226. environment:
  227. KONG_DATABASE: "postgres"
  228. KONG_PG_HOST: "postgres"
  229. volumes:
  230. - ./apigw/plugins/pep-kong:/plugins/pep-kong:Z
  231. - ./apigw/plugins/mutualauthentication:/plugins/mutualauthentication:Z
  232. logging:
  233. driver: json-file
  234. options:
  235. max-size: 100m
  236.  
  237. kong-config:
  238. image: appropriate/curl
  239. entrypoint: /opt/kong.config.sh
  240. restart: on-failure
  241. depends_on:
  242. - apigw
  243. volumes:
  244. - ./kong.config.sh:/opt/kong.config.sh:Z
  245.  
  246. flowbroker:
  247. image: dojot/flowbroker:latest
  248. restart: always
  249. depends_on:
  250. - rabbitmq
  251. - kafka
  252. - mongodb
  253. - auth
  254. networks:
  255. - default
  256. - flowbroker
  257. volumes:
  258. - /var/run/docker.sock:/var/run/docker.sock:Z
  259.  
  260. rabbitmq:
  261. image: rabbitmq:3.7-alpine
  262. restart: always
  263. logging:
  264. driver: json-file
  265. options:
  266. max-size: 100m
  267.  
  268. alarm-manager:
  269. image: dojot/alarm-manager:latest
  270. restart: always
  271. depends_on:
  272. - mongodb
  273. - rabbitmq
  274. environment:
  275. - MONGO_HOST=mongodb
  276. - RABBIT_HOST=rabbitmq
  277. volumes:
  278. - ./alarms:/opt/jboss/dojot/alarms/metamodel:Z
  279. logging:
  280. driver: json-file
  281. options:
  282. max-size: 100m
  283.  
  284. docker-monitor:
  285. image: dojot/docker-monitor:latest
  286. restart: always
  287. depends_on:
  288. - rabbitmq
  289. - alarm-manager
  290. environment:
  291. - RABBITMQ_HOST=rabbitmq
  292. volumes:
  293. - /var/run/docker.sock:/var/run/docker.sock
  294. logging:
  295. driver: json-file
  296. options:
  297. max-size: 100m
  298.  
  299. zookeeper:
  300. image: "zookeeper:3.4"
  301. restart: always
  302. logging:
  303. driver: json-file
  304. options:
  305. max-size: 100m
  306.  
  307. kafka:
  308. image: "ches/kafka:0.10.1.1"
  309. depends_on:
  310. - zookeeper
  311. restart: always
  312. environment:
  313. ZOOKEEPER_IP: zookeeper
  314. KAFKA_NUM_PARTITIONS: 10
  315. logging:
  316. driver: json-file
  317. options:
  318. max-size: 100m
  319.  
  320. ###
  321. # Currently this is only needed if MQTT over TLS is used.
  322. ###
  323. #
  324. # ejbca:
  325. # image: "dojot/ejbca"
  326. # restart: always
  327. # logging:
  328. # driver: json-file
  329. # options:
  330. # max-size: 100m
  331.  
  332. ###
  333. # If mutual authentication is needed, please uncomment these three components below
  334. ###
  335. #
  336. # ma-redis:
  337. # image: "redis:3.2.8"
  338. # volumes:
  339. # - ./ma/redis.conf:/usr/local/etc/redis/redis.conf
  340. # - ./ma/sentinel.conf:/usr/local/etc/redis/sentinel.conf
  341. # - ./ma/redis_init.sh:/usr/local/etc/redis/redis_init.sh
  342. # command: sh -c "chmod +x /usr/local/etc/redis/redis_init.sh && /usr/local/etc/redis/redis_init.sh"
  343. # logging:
  344. # driver: json-file
  345. # options:
  346. # max-size: 100m
  347. #
  348. # kerberos:
  349. # image: "dojot/kerberos:latest"
  350. # depends_on:
  351. # - kafka
  352. # - ma-redis
  353. # environment:
  354. # REDIS_ADDRESS: ma-redis
  355. # logging:
  356. # driver: json-file
  357. # options:
  358. # max-size: 100m
  359. #
  360. # kong-ma-config:
  361. # image: appropriate/curl
  362. # entrypoint: /opt/kong-ma.config.sh
  363. # restart: on-failure
  364. # depends_on:
  365. # - apigw
  366. # - kong-config
  367. # volumes:
  368. # - ./ma/kong-ma.config.sh:/opt/kong-ma.config.sh:Z
  369.  
  370. networks:
  371. flowbroker:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement