2018-02-17 16:01:38 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
mariadb:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: mariadb
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
2018-02-17 17:22:27 +00:00
|
|
|
MYSQL_DATABASE: vhost
|
2018-02-17 16:01:38 +00:00
|
|
|
MYSQL_USER: php
|
2018-02-17 17:22:27 +00:00
|
|
|
MYSQL_PASSWORD: 4JB1dtbrIC8pT935
|
2018-02-17 16:01:38 +00:00
|
|
|
expose:
|
2018-03-11 15:38:28 +00:00
|
|
|
- '3306'
|
|
|
|
ports:
|
|
|
|
- 3307:3306
|
2018-02-17 16:01:38 +00:00
|
|
|
|
|
|
|
php-fpm:
|
2018-02-17 17:00:50 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2018-02-18 14:27:59 +00:00
|
|
|
dockerfile: docker/php-fpm-extra
|
2018-02-17 16:01:38 +00:00
|
|
|
container_name: php-fpm
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
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
|
2018-02-19 14:38:39 +00:00
|
|
|
- ./virtual/ci:/ci
|
2018-02-17 16:01:38 +00:00
|
|
|
expose:
|
|
|
|
- '9000'
|
|
|
|
links:
|
|
|
|
- mariadb
|
|
|
|
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
container_name: nginx
|
|
|
|
depends_on:
|
|
|
|
- php-fpm
|
|
|
|
networks:
|
|
|
|
- overlay
|
|
|
|
volumes:
|
|
|
|
- ./virtual/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./virtual/var/log/nginx/:/var/log/nginx
|
|
|
|
- ./virtual/vhost:/vhost
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
links:
|
|
|
|
- php-fpm
|
|
|
|
|
|
|
|
networks:
|
|
|
|
overlay:
|