Advertisement
Guest User

Untitled

a guest
Jul 31st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. version: '2'
  2. services:
  3. web:
  4. image: 'nginx:alpine'
  5. volumes:
  6. - './etc/nginx/default.conf:/etc/nginx/conf.d/default.conf'
  7. - './etc/ssl:/etc/ssl'
  8. - './web:/var/www/html'
  9. - './etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template'
  10. ports:
  11. - '8000:80'
  12. - '3000:443'
  13. environment:
  14. - 'NGINX_HOST=${NGINX_HOST}'
  15. command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
  16. restart: always
  17. depends_on:
  18. - php
  19. - mysqldb
  20. php:
  21. image: 'nanoninja/php-fpm:${PHP_VERSION}'
  22. restart: always
  23. volumes:
  24. - './etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini'
  25. - './web:/var/www/html'
  26. composer:
  27. image: composer
  28. volumes:
  29. - './web/app:/app'
  30. command: install
  31. myadmin:
  32. image: phpmyadmin/phpmyadmin
  33. container_name: phpmyadmin
  34. ports:
  35. - '8080:80'
  36. environment:
  37. - PMA_ARBITRARY=1
  38. - 'PMA_HOST=${MYSQL_HOST}'
  39. restart: always
  40. depends_on:
  41. - mysqldb
  42. mysqldb:
  43. image: 'mysql:${MYSQL_VERSION}'
  44. container_name: '${MYSQL_HOST}'
  45. restart: always
  46. env_file:
  47. - .env
  48. environment:
  49. - 'MYSQL_DATABASE=${MYSQL_DATABASE}'
  50. - 'MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}'
  51. - 'MYSQL_USER=${MYSQL_USER}'
  52. - 'MYSQL_PASSWORD=${MYSQL_PASSWORD}'
  53. ports:
  54. - '8989:3306'
  55. volumes:
  56. - './data/db/mysql:/var/lib/mysql'
  57. memcached:
  58. image: memcached
  59. sphinxdocker:
  60. image: stefobark/sphinxdocker
  61. ports: []
  62. volumes:
  63. - './etc/sphinx/conf:/etc/sphinxsearch/'
  64. - './etc/sphinx:/etc/sphinxsearch/'
  65. command: ./indexandsearch.sh
  66. depends_on:
  67. - mysqldb
  68. redis:
  69. image: redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement