forked from yii-starter-kit/yii2-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (42 loc) · 840 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: "3"
services:
app:
build: docker/php
volumes:
- ./:/app
depends_on:
- db
- mailcatcher
env_file:
- .env
webpacker:
image: node:9-alpine
working_dir: /app
volumes:
- ./:/app
command: /bin/true
nginx:
image: nginx:1.12-alpine
ports:
- 80:80
volumes:
- ./:/app
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/vhost.conf
depends_on:
- app
mailcatcher:
image: schickling/mailcatcher:latest
ports:
- 1080:1080
db:
image: mysql:5.7
volumes:
- /var/lib/mysql
- ./docker/mysql/config.cnf:/etc/mysql/conf.d/config.cnf
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: yii2-starter-kit
MYSQL_USER: ysk_dbu
MYSQL_PASSWORD: ysk_pass