daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Oct 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2. services:
  3.  
  4.   # The Application
  5.   app:
  6.     build:
  7.       context: ./
  8.       dockerfile: app.dockerfile
  9.     working_dir: /var/www
  10.     volumes:
  11.       - ./laravel:/var/www
  12.     environment:
  13.       - "DB_PORT=3306"
  14.       - "DB_HOST=database"
  15.  
  16.   # The Web Server
  17.   web:
  18.     build:
  19.       context: ./
  20.       dockerfile: web.dockerfile
  21.     working_dir: /var/www
  22.     volumes_from:
  23.       - app
  24.     ports:
  25.       - 8080:80
  26.  
  27.   # The Database
  28.   database:
  29.     image: mysql:5.6
  30.     volumes:
  31.       - dbdata:/var/lib/mysql
  32.     environment:
  33.       - "MYSQL_DATABASE=homestead"
  34.       - "MYSQL_USER=homestead"
  35.       - "MYSQL_PASSWORD=secret"
  36.       - "MYSQL_ROOT_PASSWORD=secret"
  37.     ports:
  38.         - "33061:3306"
  39.  
  40. volumes:
  41.   dbdata:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top