Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.63 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   nginx:
  5.     image: nginx
  6.     depends_on:
  7.      - php
  8.     links:
  9.      - php:php
  10.     volumes:
  11.      - ./conf/nginx:/etc/nginx/conf.d/
  12.     ports:
  13.      - "80:80"
  14.  
  15.   php:
  16.     build: .
  17.     volumes:
  18.      - .:/var/www/strik/portal
  19.     depends_on:
  20.      - mysql
  21.     environment:
  22.       DEV: 1
  23.     links:
  24.      - mysql:database
  25.     ports:
  26.      - "5432"
  27.  
  28.   mysql:
  29.     image: mysql:5.7
  30.     environment:
  31.       MYSQL_ALLOW_EMPTY_PASSWORD: "true"
  32.       MYSQL_DATABASE: symfony
  33.       MYSQL_USER: root
  34.     ports:
  35.      - "3306:3306"
  36.     volumes:
  37.      - database:/var/lib/mysql
  38.  
  39. volumes:
  40.  database:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement