56 lines
1.0 KiB
YAML
Executable File
56 lines
1.0 KiB
YAML
Executable File
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'
|
|
|
|
|
|
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
|
|
- ./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: |