Advertisement
selimppc

docker-compose.yml

May 4th, 2018
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. version: '2'
  2. services:
  3.  
  4.   # The Application
  5.   app:
  6.     build:
  7.       context: ./
  8.       dockerfile: app.dockerfile
  9.     working_dir: /Users/sr/Sites/zogo-commerce/public
  10.     volumes:
  11.       - ./:/var/www/html/zogo-commerce
  12.     environment:
  13.       - "DB_PORT=3306"
  14.       - "DB_HOST=127.0.0.1"
  15.  
  16.   # The Web Server
  17.   web:
  18.     build:
  19.       context: ./
  20.       dockerfile: web.dockerfile
  21.     working_dir: /Users/sr/Sites/zogo-commerce
  22.     volumes_from:
  23.       - app
  24.     ports:
  25.       - 9090:80
  26.  
  27.   # The Database
  28.   database:
  29.     image: mariadb
  30.     volumes:
  31.       - dbdata:/var/lib/mysql
  32.     environment:
  33.       - "MYSQL_DATABASE=zogo_commerce"
  34.       - "MYSQL_USER=root"
  35.       - "MYSQL_PASSWORD=root1234"
  36.       - "MYSQL_ROOT_PASSWORD=root1234"
  37.     ports:
  38.         - "33061:3306"
  39.  
  40. volumes:
  41.   dbdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement