Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 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=false
  16. - COMPOSER_GLOBAL_INSTALL=false
  17. - INSTALL_WORKSPACE_SSH=false
  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=true
  40. - INSTALL_OPCACHE=false
  41. - INSTALL_AEROSPIKE_EXTENSION=false
  42. dockerfile: Dockerfile-56
  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. environment:
  53. # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
  54. - PHP_IDE_CONFIG="serverName=laravel"
  55.  
  56. ### Nginx Server Container ##################################
  57.  
  58. nginx:
  59. build:
  60. context: ./nginx
  61. args:
  62. - PHP_UPSTREAM=php-fpm
  63. volumes_from:
  64. - volumes_source
  65. volumes:
  66. - ./logs/nginx/:/var/log/nginx
  67. ports:
  68. - "80:80"
  69. - "443:443"
  70. links:
  71. - php-fpm
  72.  
  73. ### Apache Server Container ##################################
  74.  
  75. apache2:
  76. build:
  77. context: ./apache2
  78. args:
  79. - PHP_SOCKET="php-fpm:9000"
  80. volumes_from:
  81. - volumes_source
  82. volumes:
  83. - ./logs/apache2:/var/log/apache2
  84. ports:
  85. - "80:80"
  86. - "443:443"
  87. links:
  88. - php-fpm
  89.  
  90. ### HHVM Container ##########################################
  91.  
  92. hhvm:
  93. build: ./hhvm
  94. volumes_from:
  95. - volumes_source
  96. expose:
  97. - "9000"
  98. links:
  99. - workspace
  100.  
  101. ### MySQL Container #########################################
  102.  
  103. mysql:
  104. build: ./mysql
  105. volumes_from:
  106. - volumes_data
  107. ports:
  108. - "3306:3306"
  109. environment:
  110. MYSQL_DATABASE: homestead
  111. MYSQL_USER: homestead
  112. MYSQL_PASSWORD: secret
  113. MYSQL_ROOT_PASSWORD: root
  114.  
  115. ### PostgreSQL Container ####################################
  116.  
  117. postgres:
  118. build: ./postgres
  119. volumes_from:
  120. - volumes_data
  121. ports:
  122. - "5432:5432"
  123. environment:
  124. POSTGRES_DB: homestead
  125. POSTGRES_USER: homestead
  126. POSTGRES_PASSWORD: secret
  127.  
  128. ### MariaDB Container #######################################
  129.  
  130. mariadb:
  131. build: ./mariadb
  132. volumes_from:
  133. - volumes_data
  134. ports:
  135. - "3306:3306"
  136. environment:
  137. MYSQL_DATABASE: homestead
  138. MYSQL_USER: homestead
  139. MYSQL_PASSWORD: secret
  140. MYSQL_ROOT_PASSWORD: root
  141.  
  142. ### Neo4j Container #########################################
  143.  
  144. neo4j:
  145. build: ./neo4j
  146. ports:
  147. - "7474:7474"
  148. - "1337:1337"
  149. environment:
  150. - NEO4J_AUTH=homestead:secret
  151. volumes_from:
  152. - volumes_data
  153.  
  154. ### MongoDB Container #######################################
  155.  
  156. mongo:
  157. build: ./mongo
  158. ports:
  159. - "27017:27017"
  160. volumes_from:
  161. - volumes_data
  162.  
  163. ### Redis Container #########################################
  164.  
  165. redis:
  166. build: ./redis
  167. volumes_from:
  168. - volumes_data
  169. ports:
  170. - "6379:6379"
  171.  
  172. ### Aerospike c Container #########################################
  173.  
  174. aerospike:
  175. build: ./aerospike
  176. volumes_from:
  177. - workspace
  178. - volumes_data
  179. ports:
  180. - "3000:3000"
  181. - "3001:3001"
  182. - "3002:3002"
  183. - "3003:3003"
  184.  
  185.  
  186. ### Memcached Container #####################################
  187.  
  188. memcached:
  189. build: ./memcached
  190. volumes_from:
  191. - volumes_data
  192. ports:
  193. - "11211:11211"
  194. links:
  195. - php-fpm
  196.  
  197. ### Beanstalkd Container ####################################
  198.  
  199. beanstalkd:
  200. build: ./beanstalkd
  201. ports:
  202. - "11300:11300"
  203. privileged: true
  204. links:
  205. - php-fpm
  206.  
  207. ### RabbitMQ Container ####################################
  208.  
  209. rabbitmq:
  210. build: ./rabbitmq
  211. ports:
  212. - "5672:5672"
  213. - "15671:15671"
  214. - "8080:15672"
  215. privileged: true
  216. environment:
  217. RABBITMQ_DEFAULT_USER: guest
  218. RABBITMQ_DEFAULT_PASS: guest
  219. links:
  220. - php-fpm
  221.  
  222. ### Beanstalkd Console Container ############################
  223.  
  224. beanstalkd-console:
  225. build: ./beanstalkd-console
  226. ports:
  227. - "2080:2080"
  228. links:
  229. - beanstalkd
  230.  
  231. ### Caddy Server Container ##################################
  232.  
  233. caddy:
  234. build: ./caddy
  235. volumes_from:
  236. - volumes_source
  237. - volumes_data
  238. ports:
  239. - "80:80"
  240. - "443:443"
  241. - "2015:2015"
  242. volumes:
  243. - ./caddy/Caddyfile:/etc/Caddyfile
  244. - ./logs/caddy:/var/log/caddy
  245. links:
  246. - php-fpm
  247.  
  248. ### phpMyAdmin Container ##################################
  249.  
  250. phpmyadmin:
  251. build: ./phpmyadmin
  252. environment:
  253. PMA_ARBITRARY: 1
  254. MYSQL_USER: homestead
  255. MYSQL_PASSWORD: secret
  256. MYSQL_ROOT_PASSWORD: root
  257. volumes_from:
  258. - volumes_data
  259. ports:
  260. - "8080:80"
  261. links:
  262. # for mysql container
  263. - "mysql:db"
  264. # for mariadb container
  265. # - "mariadb:db"
  266.  
  267. ### pgAdmin Container ##################################
  268.  
  269. pgadmin:
  270. build: ./pgadmin
  271. ports:
  272. - "5050:5050"
  273. links:
  274. - postgres
  275.  
  276. ### ElasticSearch Container ##################################
  277.  
  278. elasticsearch:
  279. build: ./elasticsearch
  280. volumes_from:
  281. - volumes_data
  282. ports:
  283. - "9200:9200"
  284. - "9300:9300"
  285. links:
  286. - php-fpm
  287.  
  288. ### Laravel Application Code Container ######################
  289.  
  290. volumes_source:
  291. image: tianon/true
  292. volumes:
  293. - ../samantha:/var/www/samantha
  294. # Demonstration of how to mount multiple sites
  295. # - ../../site_a/:/var/www/site_a
  296. # - ../../site_b/:/var/www/site_b
  297.  
  298. ### Databases Data Container ################################
  299.  
  300. volumes_data:
  301. image: tianon/true
  302. volumes:
  303. - ./data/mysql:/var/lib/mysql
  304. - ./data/postgres:/var/lib/postgresql/data
  305. - ./data/memcached:/var/lib/memcached
  306. - ./data/redis:/data
  307. - ./data/neo4j:/var/lib/neo4j/data
  308. - ./data/mongo:/data/db
  309. - ./data/aerospike:/opt/aerospike/data
  310. - ./data/sessions:/sessions
  311. - ./data/caddy:/root/.caddy
  312. - ./data/elasticsearch/data:/usr/share/elasticsearch/data
  313.  
  314. ### Add more Containers below ###############################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement