48 lines
788 B
YAML
48 lines
788 B
YAML
|
nginx:
|
||
|
build: ./nginx/
|
||
|
ports:
|
||
|
- 80:80
|
||
|
links:
|
||
|
- php
|
||
|
volumes_from:
|
||
|
- app
|
||
|
|
||
|
php:
|
||
|
build: ./php/
|
||
|
expose:
|
||
|
- 9000
|
||
|
links:
|
||
|
- mysql
|
||
|
volumes_from:
|
||
|
- app
|
||
|
|
||
|
app:
|
||
|
image: php:7.0-fpm
|
||
|
volumes:
|
||
|
- ./public_html:/var/www/html
|
||
|
command: "true"
|
||
|
|
||
|
mysql:
|
||
|
image: mysql:latest
|
||
|
volumes_from:
|
||
|
- data
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: password
|
||
|
MYSQL_DATABASE: project
|
||
|
MYSQL_USER: project
|
||
|
MYSQL_PASSWORD: project
|
||
|
|
||
|
data:
|
||
|
image: mysql:latest
|
||
|
volumes:
|
||
|
- /var/lib/mysql
|
||
|
command: "true"
|
||
|
|
||
|
phpmyadmin:
|
||
|
image: phpmyadmin/phpmyadmin
|
||
|
ports:
|
||
|
- 8080:80
|
||
|
links:
|
||
|
- mysql
|
||
|
environment:
|
||
|
PMA_HOST: mysql
|