2018-09-26 11:57:23 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
mariadb:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: mariadb
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
MYSQL_DATABASE: vhost
|
|
|
|
MYSQL_USER: php
|
2018-09-26 12:49:28 +00:00
|
|
|
MYSQL_PASSWORD: Ew1RmFFqeZOA1zwkJkocAjmepQA4JmnUW0nqDFh79jHY8aubtPO_12E9wgbNvScX0Uiv1GuUllb8YCJ00PAoh0fvNS
|
2018-09-26 11:57:23 +00:00
|
|
|
volumes:
|
|
|
|
- ./virtual/var/lib/mysql:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- privnet
|
|
|
|
expose:
|
|
|
|
- '3306'
|
|
|
|
|
|
|
|
php-fpm:
|
2018-09-26 13:06:44 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: php-fpm.dockerfile
|
2018-09-26 11:57:23 +00:00
|
|
|
container_name: php-fpm
|
|
|
|
depends_on:
|
2018-09-26 12:19:26 +00:00
|
|
|
- mariadb
|
2018-09-26 11:57:23 +00:00
|
|
|
volumes:
|
|
|
|
- ./virtual/usr/local/etc/php-fpm.d/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
|
|
|
- ./virtual/var/log/php-fpm:/var/log/php-fpm
|
|
|
|
- ./virtual/vhost:/vhost
|
|
|
|
networks:
|
|
|
|
- privnet
|
|
|
|
expose:
|
|
|
|
- '9000'
|
|
|
|
links:
|
|
|
|
- mariadb
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
container_name: nginx
|
|
|
|
depends_on:
|
|
|
|
- php-fpm
|
|
|
|
volumes:
|
|
|
|
- ./virtual/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./virtual/var/log/nginx/:/var/log/nginx
|
|
|
|
- ./virtual/vhost:/vhost
|
|
|
|
networks:
|
|
|
|
- privnet
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
links:
|
|
|
|
- php-fpm
|
|
|
|
|
|
|
|
networks:
|
2018-09-26 12:19:26 +00:00
|
|
|
privnet:
|