40 lines
904 B
YAML
40 lines
904 B
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
php:
|
|
build:
|
|
context: ./docker/php
|
|
ports:
|
|
- 9000:9000
|
|
volumes:
|
|
- ./:/srv/www/api
|
|
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
|
environment:
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
apache2:
|
|
image: webdevops/apache:latest
|
|
args:
|
|
- PHP_SOCKET=php:9000
|
|
volumes:
|
|
- ./:/var/www/html
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
links:
|
|
- php
|
|
|
|
mysql:
|
|
image: mysql:5.7
|
|
ports:
|
|
- 3306:3306
|
|
depends_on:
|
|
- php
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|