-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
100 lines (99 loc) · 2.47 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
92
93
94
95
96
97
98
99
100
version: '2'
### Change the `project` with your own project name ###
services:
application:
container_name: project_application
image: debian
volumes:
- ./:/var/www/laravel
workspace:
container_name: project_workspace
restart: always
image: framgia/laravel-workspace
volumes_from:
- application
tty: true
php-fpm:
container_name: project_php-fpm
restart: always
image: framgia/laravel-php-fpm
volumes_from:
- application
expose:
- "9000"
links:
- workspace
nginx:
container_name: project_nginx
restart: always
image: framgia/laravel-nginx
volumes_from:
- data
- logs
- application
ports:
- "8000:80"
links:
- php-fpm
data:
container_name: project_data
image: debian
volumes:
- .docker/mysql:/var/lib/mysql
- .docker/data:/data
data_test:
container_name: project_data_test
image: debian
volumes:
- .docker/mysql_test:/var/lib/mysql
- .docker/data_test:/data
logs:
container_name: project_logs
image: debian
volumes:
- .docker/logs/nginx:/var/log/nginx
- .docker/logs/mongodb:/var/log/mongodb
mysql:
container_name: project_mysql
restart: always
image: mysql
volumes_from:
- data
- logs
expose:
- "3306"
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
mysql_test:
container_name: project_mysql_test
restart: always
image: mysql
volumes_from:
- data_test
expose:
- "3306"
environment:
MYSQL_DATABASE: homestead_test
MYSQL_USER: homestead_test
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
mongo:
container_name: project_mongo
restart: always
image: mongo
expose:
- "27017"
volumes_from:
- data
- logs
redis:
container_name: project_redis
restart: always
image: redis
expose:
- "6379"
volumes_from:
- data