Advertisement
Guest User

Untitled

a guest
May 10th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.  
  5. ### Applications Code Container #############################
  6.  
  7. applications:
  8. image: tianon/true
  9. volumes:
  10. - ../jm/:/var/www/
  11.  
  12. ### Workspace Utilities Container ###########################
  13.  
  14. workspace:
  15. build:
  16. context: ./workspace
  17. args:
  18. - INSTALL_XDEBUG=false
  19. - INSTALL_MONGO=false
  20. - INSTALL_NODE=true
  21. - INSTALL_YARN=false
  22. - INSTALL_DRUSH=false
  23. - INSTALL_AEROSPIKE_EXTENSION=false
  24. - INSTALL_V8JS_EXTENSION=false
  25. - COMPOSER_GLOBAL_INSTALL=true
  26. - INSTALL_WORKSPACE_SSH=false
  27. - INSTALL_LARAVEL_ENVOY=false
  28. - PUID=1000
  29. - PGID=1000
  30. - NODE_VERSION=stable
  31. - YARN_VERSION=latest
  32. - TZ=Europe/Amsterdam
  33. volumes_from:
  34. - applications
  35. extra_hosts:
  36. # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
  37. - "dockerhost:10.0.75.1"
  38. ports:
  39. - "2222:22"
  40. tty: true
  41.  
  42. ### PHP-FPM Container #######################################
  43.  
  44. php-fpm:
  45. build:
  46. context: ./php-fpm
  47. args:
  48. - INSTALL_XDEBUG=false
  49. - INSTALL_SOAP=false
  50. - INSTALL_MONGO=false
  51. - INSTALL_ZIP_ARCHIVE=false
  52. - INSTALL_BCMATH=false
  53. - INSTALL_MEMCACHED=false
  54. - INSTALL_OPCACHE=false
  55. - INSTALL_AEROSPIKE_EXTENSION=false
  56. - CODEIGNITER=false
  57. dockerfile: Dockerfile-70
  58. volumes_from:
  59. - applications
  60. expose:
  61. - "9000"
  62. links:
  63. - workspace
  64. extra_hosts:
  65. # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
  66. - "dockerhost:10.0.75.1"
  67. environment:
  68. # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
  69. - PHP_IDE_CONFIG=serverName=laravel
  70.  
  71. ### Nginx Server Container ##################################
  72.  
  73. nginx:
  74. build:
  75. context: ./nginx
  76. args:
  77. - PHP_UPSTREAM=php-fpm
  78. volumes_from:
  79. - applications
  80. volumes:
  81. - ./logs/nginx/:/var/log/nginx
  82. - ./nginx/sites/:/etc/nginx/sites-available
  83. ports:
  84. - "80:80"
  85. - "443:443"
  86. links:
  87. - php-fpm
  88.  
  89. ### MySQL Container #########################################
  90.  
  91. mysql:
  92. build:
  93. context: ./mysql
  94. args:
  95. - MYSQL_DATABASE=jm
  96. - MYSQL_USER=root
  97. - MYSQL_PASSWORD=root
  98. - MYSQL_ROOT_PASSWORD=root
  99. volumes:
  100. - mysql:/var/lib/mysql
  101. ports:
  102. - "3306:3306"
  103.  
  104. ### Volumes Setup ###########################################
  105.  
  106. volumes:
  107. mysql:
  108. driver: "local"
  109. sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
  110. driver: "local"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement