Advertisement
Guest User

Untitled

a guest
Sep 5th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.  
  5. ### Workspace Utilities Container ###########################
  6.  
  7. workspace:
  8. build:
  9. context: ./workspace
  10. args:
  11. - INSTALL_XDEBUG=false
  12. - INSTALL_MONGO=false
  13. - INSTALL_NODE=false
  14. - INSTALL_DRUSH=false
  15. - INSTALL_AEROSPIKE_EXTENSION=true
  16. - COMPOSER_GLOBAL_INSTALL=false
  17. - INSTALL_WORKSPACE_SSH=true
  18. - PUID=1000
  19. - PGID=1000
  20. - NODE_VERSION=stable
  21. volumes_from:
  22. - volumes_source
  23. extra_hosts:
  24. # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
  25. - "dockerhost:10.0.75.1"
  26. # ports:
  27. # - "22:22"
  28. tty: true
  29.  
  30. ### PHP-FPM Container #######################################
  31.  
  32. php-fpm:
  33. build:
  34. context: ./php-fpm
  35. args:
  36. - INSTALL_XDEBUG=false
  37. - INSTALL_MONGO=false
  38. - INSTALL_ZIP_ARCHIVE=false
  39. - INSTALL_MEMCACHED=false
  40. - INSTALL_OPCACHE=false
  41. - INSTALL_AEROSPIKE_EXTENSION=true
  42. dockerfile: Dockerfile-70
  43. volumes_from:
  44. - volumes_source
  45. expose:
  46. - "9000"
  47. links:
  48. - workspace
  49. extra_hosts:
  50. # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
  51. - "dockerhost:10.0.75.1"
  52. # ports:
  53. # - "22:22"
  54. environment:
  55. # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
  56. - PHP_IDE_CONFIG="serverName=laravel"
  57.  
  58. ### Nginx Server Container ##################################
  59.  
  60. nginx:
  61. build:
  62. context: ./nginx
  63. args:
  64. - PHP_UPSTREAM=php-fpm
  65. volumes_from:
  66. - volumes_source
  67. volumes:
  68. - ./logs/nginx/:/var/log/nginx
  69. ports:
  70. - "80:80"
  71. - "443:443"
  72. links:
  73. - php-fpm
  74.  
  75. ### Apache Server Container ##################################
  76.  
  77. apache2:
  78. build:
  79. context: ./apache2
  80. args:
  81. - PHP_SOCKET="php-fpm:9000"
  82. volumes_from:
  83. - volumes_source
  84. volumes:
  85. - ./logs/apache2:/var/log/apache2
  86. ports:
  87. - "80:80"
  88. - "443:443"
  89. links:
  90. - php-fpm
  91.  
  92. ### HHVM Container ##########################################
  93.  
  94. hhvm:
  95. build: ./hhvm
  96. volumes_from:
  97. - volumes_source
  98. expose:
  99. - "9000"
  100. links:
  101. - workspace
  102.  
  103. ### MySQL Container #########################################
  104.  
  105. mysql:
  106. build: ./mysql
  107. volumes_from:
  108. - volumes_data
  109. ports:
  110. - "3306:3306"
  111. environment:
  112. MYSQL_DATABASE: homestead
  113. MYSQL_USER: homestead
  114. MYSQL_PASSWORD: secret
  115. MYSQL_ROOT_PASSWORD: root
  116.  
  117. ### PostgreSQL Container ####################################
  118.  
  119. postgres:
  120. build: ./postgres
  121. volumes_from:
  122. - volumes_data
  123. ports:
  124. - "5432:5432"
  125. environment:
  126. POSTGRES_DB: homestead
  127. POSTGRES_USER: homestead
  128. POSTGRES_PASSWORD: secret
  129.  
  130. ### MariaDB Container #######################################
  131.  
  132. mariadb:
  133. build: ./mariadb
  134. volumes_from:
  135. - volumes_data
  136. ports:
  137. - "3306:3306"
  138. environment:
  139. MYSQL_DATABASE: homestead
  140. MYSQL_USER: homestead
  141. MYSQL_PASSWORD: secret
  142. MYSQL_ROOT_PASSWORD: root
  143.  
  144. ### Neo4j Container #########################################
  145.  
  146. neo4j:
  147. build: ./neo4j
  148. ports:
  149. - "7474:7474"
  150. - "1337:1337"
  151. environment:
  152. - NEO4J_AUTH=homestead:secret
  153. volumes_from:
  154. - volumes_data
  155.  
  156. ### MongoDB Container #######################################
  157.  
  158. mongo:
  159. build: ./mongo
  160. ports:
  161. - "27017:27017"
  162. volumes_from:
  163. - volumes_data
  164.  
  165. ### Redis Container #########################################
  166.  
  167. redis:
  168. build: ./redis
  169. volumes_from:
  170. - volumes_data
  171. ports:
  172. - "6379:6379"
  173.  
  174. ### Aerospike c Container #########################################
  175.  
  176. aerospike:
  177. build: ./aerospike
  178. volumes_from:
  179. - workspace
  180. - volumes_data
  181. ports:
  182. - "3000:3000"
  183. - "3001:3001"
  184. - "3002:3002"
  185. - "3003:3003"
  186.  
  187.  
  188. ### Memcached Container #####################################
  189.  
  190. memcached:
  191. build: ./memcached
  192. volumes_from:
  193. - volumes_data
  194. ports:
  195. - "11211:11211"
  196. links:
  197. - php-fpm
  198.  
  199. ### Beanstalkd Container ####################################
  200.  
  201. beanstalkd:
  202. build: ./beanstalkd
  203. ports:
  204. - "11300:11300"
  205. privileged: true
  206. links:
  207. - php-fpm
  208.  
  209. ### RabbitMQ Container ####################################
  210.  
  211. rabbitmq:
  212. build: ./rabbitmq
  213. ports:
  214. - "5672:5672"
  215. - "15671:15671"
  216. - "8080:15672"
  217. privileged: true
  218. environment:
  219. RABBITMQ_DEFAULT_USER: guest
  220. RABBITMQ_DEFAULT_PASS: guest
  221. links:
  222. - php-fpm
  223.  
  224. ### Beanstalkd Console Container ############################
  225.  
  226. beanstalkd-console:
  227. build: ./beanstalkd-console
  228. ports:
  229. - "2080:2080"
  230. links:
  231. - beanstalkd
  232.  
  233. ### Caddy Server Container ##################################
  234.  
  235. caddy:
  236. build: ./caddy
  237. volumes_from:
  238. - volumes_source
  239. ports:
  240. - "80:80"
  241. - "443:443"
  242. - "2015:2015"
  243. volumes:
  244. - ./caddy/Caddyfile:/etc/Caddyfile
  245. - ./logs/caddy:/var/log/caddy
  246. links:
  247. - php-fpm
  248.  
  249. ### phpMyAdmin Container ##################################
  250.  
  251. phpmyadmin:
  252. build: ./phpmyadmin
  253. environment:
  254. PMA_ARBITRARY: 1
  255. MYSQL_USER: homestead
  256. MYSQL_PASSWORD: secret
  257. MYSQL_ROOT_PASSWORD: root
  258. volumes_from:
  259. - volumes_data
  260. ports:
  261. - "8080:80"
  262. links:
  263. # for mysql container
  264. - "mysql:db"
  265. # for mariadb container
  266. # - "mariadb:db"
  267.  
  268. ### Laravel Application Code Container ######################
  269.  
  270. volumes_source:
  271. image: tianon/true
  272. volumes:
  273. - ../:/var/www/laravel
  274. # Demonstration of how to mount multiple sites
  275. # - ../../site_a/:/var/www/site_a
  276. # - ../../site_b/:/var/www/site_b
  277.  
  278. ### Databases Data Container ################################
  279.  
  280. volumes_data:
  281. image: tianon/true
  282. volumes:
  283. - ./data/mysql:/var/lib/mysql
  284. - ./data/postgres:/var/lib/postgres
  285. - ./data/memcached:/var/lib/memcached
  286. - ./data/redis:/data
  287. - ./data/neo4j:/var/lib/neo4j/data
  288. - ./data/mongo:/data/db
  289. - ./data/aerospike:/opt/aerospike/data
  290. - ./data/sessions:/sessions
  291.  
  292. ### Add more Containers below ###############################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement