33 lines
770 B
YAML
33 lines
770 B
YAML
|
version: '2'
|
||
|
|
||
|
services:
|
||
|
web:
|
||
|
image: nginx:alpine
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
volumes:
|
||
|
- ./:/var/www
|
||
|
- ./public:/var/www/html
|
||
|
- ./conf.d:/etc/nginx/conf.d
|
||
|
links:
|
||
|
- php
|
||
|
- mysql
|
||
|
restart: always
|
||
|
php:
|
||
|
build: ./docker/php
|
||
|
volumes:
|
||
|
- ./:/var/www
|
||
|
- ./public:/var/www/html
|
||
|
restart: always
|
||
|
mysql:
|
||
|
image: mysql:5.7
|
||
|
environment:
|
||
|
- "MYSQL_ROOT_PASSWORD=root"
|
||
|
- "MYSQL_DATABASE=doughnut"
|
||
|
- "MYSQL_USER=doughnut"
|
||
|
- "MYSQL_PASSWORD=doughnut"
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
volumes:
|
||
|
- ./lib/mysql:/var/lib/mysql
|
||
|
|