Advertisement
Guest User

Untitled

a guest
May 17th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. version: '2'
  2. networks:
  3. development:
  4. driver: bridge
  5. ipam:
  6. config:
  7. - subnet: 10.10.1.0/24
  8.  
  9. services:
  10. rds:
  11. image: busybox:latest
  12. container_name: rds
  13. volumes:
  14. - /home/diego/open_solutions/web:/var/www/html/
  15. command: /bin/echo Regis
  16. tty: true
  17. networks:
  18. development:
  19. restart: always
  20.  
  21. cli:
  22. image: diegograssato/cli
  23. container_name: cli
  24. hostname: cli
  25. tty: true
  26. volumes_from:
  27. - rds
  28. volumes:
  29. - ~:/.home-linux # Linux
  30. environment:
  31. CLI_SYMFONY_DEV: "true"
  32. CLI_CS: "true"
  33. CLI_SONAR: "true"
  34. networks:
  35. development:
  36. restart: always
  37.  
  38. php7:
  39. image: diegograssato/php7:7.1
  40. container_name: php7
  41. hostname: php7
  42. expose:
  43. - 9000
  44. - 1024
  45. - 65535
  46. volumes_from:
  47. - rds
  48. links:
  49. - db
  50. environment:
  51. SSH_KEY_NAME: id_rsa
  52. PHP_XDEBUG_PORT: 9000
  53. PHP_XDEBUG_REMOTE_IP: 10.10.1.1
  54. PHP_XDEBUG_ENABLE: 'false'
  55. PHP_XDEBUG_IDE_KEY: 'PHPSTORM'
  56. PHP_PRODUCTION: "false"
  57. PHP_FPM_ENABLED: "true"
  58. networks:
  59. development:
  60. ipv4_address: 10.10.1.11
  61. restart: always
  62.  
  63. nginx:
  64. image: diegograssato/nginx
  65. container_name: web
  66. hostname: web
  67. links:
  68. - php7
  69. ports:
  70. - 80:80
  71. - 443:443
  72. volumes_from:
  73. - rds
  74. environment:
  75. PHP_FPM_SOCKET: "php7:5000"
  76. NGINX_WORKER_PROCESSES: 4
  77. NGINX_CONNECTIONS: 20480 # 4 * 512 * 10
  78. NGINX_DOCUMENT_ROOT: "/var/www/html/"
  79. VIRTUAL_HOST_CONFIG: "{'name':'phpBB3','domains':['phpbb','phpBB3'],'docroot':'phpBB3', 'forcessl': 'false'}"
  80. networks:
  81. development:
  82. ipv4_address: 10.10.1.20
  83. restart: always
  84.  
  85. db:
  86. image: mariadb:5.5
  87. container_name: symfony_db
  88. hostname: symfony_db
  89. volumes:
  90. - ~/.mysql-server/mysql:/var/lib/mysql # Mapping for custom mysql database folder.
  91. expose:
  92. - "3306"
  93. ports:
  94. - "3307:3306"
  95. environment:
  96. MYSQL_ROOT_PASSWORD: 'root'
  97. MYSQL_USER: symfony
  98. MYSQL_PASSWORD: symfony
  99. MYSQL_DATABASE: symfony
  100. networks:
  101. development:
  102. ipv4_address: 10.10.1.30
  103. restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement