2016-04-22 14:02:42 +00:00
|
|
|
nginx:
|
|
|
|
build: ./nginx/
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
links:
|
|
|
|
- php
|
|
|
|
volumes_from:
|
|
|
|
- app
|
|
|
|
|
|
|
|
php:
|
|
|
|
build: ./php/
|
|
|
|
expose:
|
|
|
|
- 9000
|
|
|
|
links:
|
|
|
|
- mysql
|
|
|
|
volumes_from:
|
|
|
|
- app
|
|
|
|
|
|
|
|
app:
|
2016-05-06 22:23:04 +00:00
|
|
|
image: php:5.6-fpm
|
2016-04-22 14:02:42 +00:00
|
|
|
volumes:
|
|
|
|
- ./public_html:/var/www/html
|
|
|
|
command: "true"
|
|
|
|
|
|
|
|
mysql:
|
2016-05-06 22:23:04 +00:00
|
|
|
build: ./mysql/
|
2016-04-22 14:02:42 +00:00
|
|
|
volumes_from:
|
|
|
|
- data
|
2016-05-06 22:23:04 +00:00
|
|
|
- app
|
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2016-04-22 14:02:42 +00:00
|
|
|
environment:
|
2016-05-06 22:23:04 +00:00
|
|
|
MYSQL_ROOT_PASSWORD: 123123
|
|
|
|
MYSQL_DATABASE: magento
|
|
|
|
MYSQL_USER: magento
|
|
|
|
MYSQL_PASSWORD: magento
|
2016-04-22 14:02:42 +00:00
|
|
|
|
|
|
|
data:
|
|
|
|
image: mysql:latest
|
|
|
|
volumes:
|
|
|
|
- /var/lib/mysql
|
|
|
|
command: "true"
|
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin/phpmyadmin
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
links:
|
|
|
|
- mysql
|
|
|
|
environment:
|
|
|
|
PMA_HOST: mysql
|