Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. version: "2"
  2.  
  3. services:
  4. mariadb:
  5. image: wodby/mariadb:10.1-2.0.0
  6. environment:
  7. MYSQL_ROOT_PASSWORD: password
  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. # - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
  14. # - /path/to/mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually.
  15.  
  16. php:
  17. image: wodby/wordpress-php:7.0-2.0.0
  18. # image: wodby/wordpress-php:7.1-2.0.0
  19. environment:
  20. PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
  21. # PHP_XDEBUG: 1
  22. # PHP_XDEBUG_DEFAULT_ENABLE: 1
  23. # PHP_XDEBUG_REMOTE_CONNECT_BACK: 0 # This is needed to respect remote.host setting bellow
  24. # PHP_XDEBUG_REMOTE_HOST: "10.254.254.254" # You will also need to 'sudo ifconfig lo0 alias 10.254.254.254'
  25. volumes:
  26. - ./:/var/www/html
  27. # - d4d-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
  28.  
  29. nginx:
  30. image: wodby/wordpress-nginx:4-1.10-2.0.0
  31. environment:
  32. NGINX_BACKEND_HOST: php
  33. NGINX_SERVER_ROOT: /var/www/html/
  34. volumes:
  35. - ./:/var/www/html
  36. labels:
  37. - 'traefik.backend=nginx'
  38. - 'traefik.port=80'
  39. - 'traefik.frontend.rule=Host:wp.docker.localhost'
  40.  
  41. redis-1:
  42. image: wodby/redis:3.2-2.0.1
  43.  
  44. redis-2:
  45. image: wodby/redis:3.2-2.0.1
  46.  
  47. memcached:
  48. image: wodby/memcached:1.4
  49.  
  50. pma:
  51. image: phpmyadmin/phpmyadmin
  52. environment:
  53. PMA_HOST: mariadb
  54. PMA_USER: wordpress
  55. PMA_PASSWORD: wordpress
  56. PHP_UPLOAD_MAX_FILESIZE: 1G
  57. PHP_MAX_INPUT_VARS: 1G
  58. labels:
  59. - 'traefik.backend=pma'
  60. - 'traefik.port=80'
  61. - 'traefik.frontend.rule=Host:pma.wp.docker.localhost'
  62.  
  63. mailhog:
  64. image: mailhog/mailhog
  65. labels:
  66. - 'traefik.backend=mailhog'
  67. - 'traefik.port=8025'
  68. - 'traefik.frontend.rule=Host:mailhog.wp.docker.localhost'
  69.  
  70. traefik:
  71. image: traefik
  72. restart: unless-stopped
  73. command: -c /dev/null --web --docker --logLevel=INFO
  74. ports:
  75. - '8000:80'
  76. - '8080:8080'
  77. volumes:
  78. - /var/run/docker.sock:/var/run/docker.sock
  79.  
  80. # Docker-sync for macOS users
  81. #volumes:
  82. # d4d-unison-sync:
  83. # external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement