daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2. services:
  3.   nginx:
  4.     build: ./nginx
  5.     ports:
  6.       - "80:80"
  7.     volumes:
  8.       - ./application:/usr/share/nginx/html  
  9.     networks:
  10.       - net-dev
  11.  
  12.   php:
  13.     build: ./php
  14.     volumes_from:
  15.       - nginx
  16.     networks:
  17.       - net-dev
  18.            
  19.   mysql:
  20.     image: mysql:5.7
  21.     ports:
  22.       - "3306:3306"
  23.     environment:
  24.       MYSQL_ROOT_PASSWORD: root
  25.       MYSQL_DATABASE: testdb
  26.       MYSQL_USER: testuser
  27.       MYSQL_PASSWORD: testpass  
  28.     volumes:
  29.       - mysqldata:/var/lib/mysql
  30.     networks:
  31.       - net-dev
  32.  
  33. networks:
  34.   net-dev:
  35.     driver: "bridge"
  36. volumes:
  37.   mysqldata:
  38.     driver: "local"
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