-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·86 lines (79 loc) · 1.52 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3'
services:
nginx:
build:
context: ./docker
dockerfile: development/nginx/Dockerfile
volumes:
- ./:/app
ports:
- "8080:80"
links:
- php-fpm
php-fpm:
build:
context: ./
dockerfile: docker/development/php-fpm/Dockerfile
volumes:
- ./:/app
links:
- mysql
- mysql-test
- redis
environment:
- "DB_PORT=3306"
- "DB_HOST=mysql"
php-cli:
build:
context: ./
dockerfile: docker/development/php-cli/Dockerfile
volumes:
- ./:/app
links:
- mysql
- mysql-test
- redis
environment:
- "DB_PORT=3306"
- "DB_HOST=mysql"
tty: true
mysql:
image: mysql:5.7
volumes:
- ./storage/docker/mysql:/var/lib/mysql
environment:
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_USER=app"
- "MYSQL_PASSWORD=secret"
- "MYSQL_DATABASE=app"
ports:
- "33061:3306"
mysql-test:
image: mysql:5.7
volumes:
- ./storage/docker/mysql-test:/var/lib/mysql
environment:
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_USER=app"
- "MYSQL_PASSWORD=secret"
- "MYSQL_DATABASE=app2"
ports:
- "33062:3306"
node:
build:
context: ./
dockerfile: docker/development/node/Dockerfile
volumes:
- ./:/app
tty: true
links:
- redis
- nginx
mailer:
image: mailhog/mailhog
ports:
- "8082:8025"
redis:
image: redis:3.0-alpine
ports:
- "63791:6379"