ptut-virtenv/docker-compose.yml

57 lines
1.1 KiB
YAML
Raw Normal View History

version: '3'
services:
mariadb:
image: mariadb:latest
container_name: mariadb
networks:
- overlay
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: vhost
MYSQL_USER: php
MYSQL_PASSWORD: 4JB1dtbrIC8pT935
expose:
- '3306'
ports:
- 3307:3306
php-fpm:
build:
context: .
dockerfile: docker/php-fpm-extra
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
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: