Advertisement
vulehuan

docker-compose.yml

Jan 17th, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.56 KB | None | 0 0
  1. version: "2"
  2.  
  3. services:
  4.   mariadb:
  5.     image: wodby/drupal-mariadb:1.0.0
  6.     environment:
  7.       MYSQL_RANDOM_ROOT_PASSWORD: 1
  8.       MYSQL_DATABASE: drupal
  9.       MYSQL_USER: drupal
  10.       MYSQL_PASSWORD: drupal
  11.     command: --character-set-server=utf8 --collation-server=utf8_vietnamese_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.  
  15.   php:
  16.     image: wodby/drupal-php:7.0-1.0.0
  17. #    image: wodby/drupal-php:5.6-1.0.0
  18.     environment:
  19.       PHP_SITE_NAME: dev
  20.       PHP_HOST_NAME: localhost:8000
  21. #      PHP_DOCROOT: web # Relative path inside the /var/www/html/ directory.
  22.       PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
  23.       # PHP_XDEBUG_ENABLED: 1
  24.       # PHP_XDEBUG_AUTOSTART: 1
  25.       # PHP_XDEBUG_REMOTE_CONNECT_BACK: 0         # This is needed to respect remote.host setting bellow
  26.       # PHP_XDEBUG_REMOTE_HOST: "10.254.254.254"  # You will also need to 'sudo ifconfig lo0 alias 10.254.254.254'
  27.     volumes:
  28.      - .:/var/www/html
  29. #      - d4d-unison-sync:/var/www/html:rw # Replace volume to this to use docker-sync for macOS users
  30.  
  31.   nginx:
  32.     image: wodby/drupal-nginx:1.10-1.1.0
  33.     environment:
  34.       NGINX_SERVER_NAME: localhost
  35.       NGINX_UPSTREAM_NAME: php
  36. #      NGINX_DOCROOT: coi/ecogogrow.com # Relative path inside the /var/www/html/ directory.
  37.       DRUPAL_VERSION: 8 # Allowed: 7, 8.
  38.     volumes:
  39.      - .:/var/www/html
  40.     ports:
  41.      - "8000:80"
  42.  
  43.   pma:
  44.     image: phpmyadmin/phpmyadmin
  45.     environment:
  46.       PMA_HOST: mariadb
  47.       PMA_USER: drupal
  48.       PMA_PASSWORD: drupal
  49.       PHP_UPLOAD_MAX_FILESIZE: 1G
  50.       PHP_MAX_INPUT_VARS: 1G
  51.     ports:
  52.     - "8001:80"
  53.  
  54.   mailhog:
  55.     image: mailhog/mailhog
  56.     ports:
  57.      - "8002:8025"
  58.  
  59. #  redis:
  60. #    image: redis:3.2-alpine
  61.  
  62. #  memcached:
  63. #    image: memcached:1.4-alpine
  64.  
  65. #  memcached-admin:
  66. #    image: phynias/phpmemcachedadmin
  67. #    ports:
  68. #      - "8006:80"
  69.  
  70. #  solr:
  71. #    image: wodby/solr:5.5-1.0.0
  72. ##    image: wodby/solr:6.3-1.0.0
  73. #    environment:
  74. #      SOLR_HEAP: 1024m
  75. #    ports:
  76. #      - "8003:8983"
  77.  
  78. #  varnish:
  79. #    image: wodby/drupal-varnish:1.0.0
  80. #    depends_on:
  81. #      - nginx
  82. #    environment:
  83. #      VARNISH_SECRET: secret
  84. #      VARNISH_BACKEND_HOST: nginx
  85. #      VARNISH_BACKEND_PORT: 80
  86. #      VARNISH_MEMORY_SIZE: 256M
  87. #      VARNISH_STORAGE_SIZE: 1024M
  88. #    ports:
  89. #      - "8004:6081" # HTTP Proxy
  90. #      - "8005:6082" # Control terminal
  91.  
  92. #volumes:
  93. #  d4d-unison-sync:
  94. #    external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement