-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
91 lines (90 loc) · 2.18 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
87
88
89
90
91
version: '2'
services:
application:
container_name: demo_application
image: debian
volumes:
- ./:/var/www/laravel
workspace:
container_name: demo_workspace
restart: always
image: framgia/laravel-workspace
volumes_from:
- application
tty: true
php-fpm:
container_name: demo_php-fpm
restart: always
image: framgia/laravel-php-fpm
volumes_from:
- application
expose:
- "9000"
links:
- workspace
nginx:
container_name: demo_nginx
restart: always
image: framgia/laravel-nginx
volumes_from:
- data
- application
ports:
- "8000:80"
links:
- php-fpm
data:
container_name: demo_data
image: debian
volumes:
- .docker/demo_mysql:/var/lib/mysql
- .docker/demo_data:/data
- .docker/nginx:/var/log/nginx
data_test:
container_name: demo_data_test
image: debian
volumes:
- .docker/demo_mysql_test:/var/lib/mysql
- .docker/demo_data_test:/data
mysql:
container_name: demo_mysql
restart: always
image: mysql
volumes_from:
- data
expose:
- "3306"
environment:
MYSQL_DATABASE: demo
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: root
mysql_test:
container_name: demo_mysql_test
restart: always
image: mysql
volumes_from:
- data_test
expose:
- "3306"
environment:
MYSQL_DATABASE: demo
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: root
mongo:
container_name: demo_mongo
restart: always
image: mongo
expose:
- "27017"
volumes_from:
- data
redis:
container_name: demo_redis
restart: always
image: redis
expose:
- "6379"
volumes_from:
- data