doughnut-wedding/docker-compose.yml

33 lines
766 B
YAML

version: '2'
services:
web:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./:/var/www
- ./html:/var/www/html
- ./conf.d:/etc/nginx/conf.d
links:
- php
- mysql
restart: always
php:
build: ./docker/php
volumes:
- ./:/var/www
- ./html:/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