PHP_SMART_HOME_V3/docker-compose.yml

40 lines
904 B
YAML
Raw Normal View History

2020-05-15 20:37:17 +00:00
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}
2020-07-15 13:10:42 +00:00
apache2:
image: webdevops/apache:latest
args:
- PHP_SOCKET=php:9000
volumes:
- ./:/var/www/html
2020-05-15 20:37:17 +00:00
ports:
- 80:80
2020-07-15 13:10:42 +00:00
- 443:443
links:
2020-05-15 20:37:17 +00:00
- 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}