Advertisement
tabvn

Magento Docker Compose

Feb 27th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.05 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   web:
  5.     image: meanbee/magento:7.0-apache
  6.     hostname: magento-cron.docker
  7.     environment:
  8.      - DOCKER_FIX=
  9.       - ENABLE_SENDMAIL=true
  10.       - VIRTUAL_HOST=magento.docker
  11.     volumes:
  12.      - ./src:/var/www/html
  13.     ports:
  14.      - 8001:80
  15.     links:
  16.      - maria
  17.  
  18.   maria:
  19.     image: mariadb
  20.     environment:
  21.       MYSQL_ALLOW_EMPTY_PASSWORD: 'True'
  22.       MYSQL_DATABASE: magento
  23.       MYSQL_USER: magento
  24.       MYSQL_PASSWORD: magento
  25.     ports:
  26.      - 3306
  27.   php:
  28.     image: php:7
  29.     links:
  30.      - maria
  31.     volumes:
  32.      - ./src:/var/www/html
  33.   pma:
  34.     image: phpmyadmin/phpmyadmin
  35.     environment:
  36.       PMA_HOST: maria
  37.       PMA_USER: magento
  38.       PMA_PASSWORD: magento
  39.       PHP_UPLOAD_MAX_FILESIZE: 1G
  40.       PHP_MAX_INPUT_VARS: 1G
  41.     ports:
  42.      - "8002:80"
  43.  
  44.   cron:
  45.     image: meanbee/magento:7.0-cli
  46.     hostname: magento-cron.docker
  47.     command: /run-cron.sh
  48.     environment:
  49.      - ENABLE_SENDMAIL=true
  50.     volumes:
  51.      - ./src:/var/www/html
  52.     links:
  53.      - maria
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement