docker-lemp/docker-compose.yml

51 lines
827 B
YAML
Raw Permalink Normal View History

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:
image: php:5.6-fpm
2016-04-22 14:02:42 +00:00
volumes:
- ./public_html:/var/www/html
command: "true"
mysql:
build: ./mysql/
2016-04-22 14:02:42 +00:00
volumes_from:
- data
- app
ports:
- 3306:3306
2016-04-22 14:02:42 +00:00
environment:
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