doughnut-wedding/docker-compose.yml

44 lines
1023 B
YAML
Raw Normal View History

2017-02-07 13:17:46 -08:00
version: '2'
services:
web:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./:/var/www
2017-04-09 18:08:01 -07:00
- ./web:/var/www/html
2017-02-07 13:17:46 -08:00
- ./conf.d:/etc/nginx/conf.d
links:
- php
- mysql
2017-03-29 09:24:59 -07:00
- redis
2017-02-07 13:17:46 -08:00
restart: always
2017-02-10 21:34:31 -08:00
environment:
- "APP_ENV=development"
2017-02-07 13:17:46 -08:00
php:
build: ./docker/php
volumes:
- ./:/var/www
2017-03-29 09:24:59 -07:00
- ./web:/var/www/html
links:
- redis
2017-02-07 13:17:46 -08:00
restart: always
2017-02-10 21:34:31 -08:00
environment:
- "APP_ENV=development"
2017-02-07 13:17:46 -08:00
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
2017-03-29 09:24:59 -07:00
redis:
build: ./docker/redis
ports:
- "6379:6379"