Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. version: "2"
  2.  
  3. services:
  4. mariadb:
  5. image: wodby/wordpress-mariadb
  6. environment:
  7. MYSQL_RANDOM_ROOT_PASSWORD: 1
  8. MYSQL_DATABASE: wordpress
  9. MYSQL_USER: wordpress
  10. MYSQL_PASSWORD: wordpress
  11. # command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config.
  12. volumes:
  13. - ./docker-runtime/mariadb:/var/lib/mysql
  14. # - ./docker-runtime/mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
  15.  
  16. php:
  17. image: wodby/wordpress-php
  18. environment:
  19. PHP_SITE_NAME: dev
  20. PHP_HOST_NAME: localhost:8000
  21. # PHP_DOCROOT: public # Relative path inside the /var/www/html/ directory.
  22. PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
  23. PHP_XDEBUG_ENABLED: 0 # Set 1 to enable.
  24. volumes:
  25. - ./:/var/www/html
  26.  
  27. nginx:
  28. image: wodby/wordpress-nginx
  29. environment:
  30. NGINX_SERVER_NAME: localhost
  31. NGINX_UPSTREAM_NAME: php
  32. # NGINX_DOCROOT: public # Relative path inside the /var/www/html/ directory.
  33. volumes_from:
  34. - php
  35. ports:
  36. - "8000:80"
  37.  
  38. pma:
  39. image: phpmyadmin/phpmyadmin
  40. environment:
  41. PMA_HOST: mariadb
  42. PMA_USER: wordpress
  43. PMA_PASSWORD: wordpress
  44. PHP_UPLOAD_MAX_FILESIZE: 1G
  45. PHP_MAX_INPUT_VARS: 1G
  46. ports:
  47. - "8001:80"
  48.  
  49. mailhog:
  50. image: mailhog/mailhog
  51. ports:
  52. - "8002:8025"
  53.  
  54. # redis:
  55. # image: redis:3.2-alpine
  56.  
  57. # memcached:
  58. # image: memcached:1.4-alpine
  59.  
  60. # solr:
  61. # image: solr:5.5-alpine
  62. # volumes:
  63. # - ./docker-runtime/solr:/opt/solr/server/solr/mycores
  64. # ports:
  65. # - "8003:8983"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement