Advertisement
Armandobs14

docker-compose for php

Nov 30th, 2016
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.45 KB | None | 0 0
  1. mysql:
  2.   image: mysql
  3.   ports:
  4.    - "3306:3306"
  5.   environment:
  6.     MYSQL_ROOT_PASSWORD: password
  7.  
  8. nginx:
  9. #  image: webdevops/php-nginx
  10.   image: webdevops/php-nginx:ubuntu-14.04
  11.   ports:
  12.    - "80:80"
  13.   links:
  14.    - mysql:mysql
  15.   volumes:
  16.    - ./2016:/app/
  17.  
  18. phpmyadmin:
  19.   image: phpmyadmin/phpmyadmin
  20.   ports:
  21.    - "81:80"
  22.   links:
  23.    - mysql:mysql
  24.   environment:
  25.     PMA_HOST: mysql
  26.     PMA_USER: root
  27.     PMA_PASSWORD: password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement