Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. version: '2'
  2. services:
  3. # Application source
  4. app_source:
  5. image: busybox
  6. volumes:
  7. - ./src:/var/www/site
  8. - /var/log/php-fpm
  9.  
  10. # Web server/proxy
  11. nginx:
  12. image: tattoodo/nginx:dev
  13. links:
  14. - php
  15. ports:
  16. - 8080:80
  17. volumes_from:
  18. - app_source
  19. volumes:
  20. - ./env/files/nginx/dev.nginx.conf:/etc/nginx/nginx.conf
  21.  
  22. # PHP runtime
  23. php:
  24. tty: true
  25. environment:
  26. # App envs
  27. - APP_DEBUG=True
  28. - APP_ENV=local
  29. - APP_ENVIRONMENT=local
  30. - APP_FALLBACK_LOCALE=en
  31.  
  32. image: tattoodo/php7:7.1-fpm-dev
  33. links:
  34. - redis
  35. - mariadb
  36. - elasticsearch
  37. volumes:
  38. - ./env/files/php/dev.php.ini:/usr/local/etc/php/conf.d/tattoodo.ini
  39. - ./env/files/php/dev.www.conf:/usr/local/etc/php-fpm.d/wwwtattoodo.conf
  40. volumes_from:
  41. - app_source
  42.  
  43. # Database
  44. mariadb:
  45. image: mariadb:10.0.22
  46. environment:
  47. MYSQL_ROOT_PASSWORD:
  48. MYSQL_DATABASE: bapi
  49. MYSQL_USER: dbm
  50. MYSQL_PASSWORD:
  51. ports:
  52. - 3300:3306
  53. #volumes:
  54. #- ./init/db:/docker-entrypoint-initdb.d
  55.  
  56. # Local cache / queue
  57. redis:
  58. image: redis:3.2-alpine
  59.  
  60. # Elastic search
  61. elasticsearch:
  62. image: tattoodo/elasticsearch5:latest
  63. ports:
  64. - 9212:9200
  65. volumes:
  66. - ./env/files/elasticsearch_dev.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  67. environment:
  68. - AWS_ACCESS_KEY_ID
  69. - AWS_SECRET_ACCESS_KEY
  70.  
  71. kibana:
  72. image: kibana:5.3
  73. ports:
  74. - 5602:5601
  75. links:
  76. - elasticsearch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement