-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
127 lines (126 loc) · 4.96 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '2'
services:
www-data:
container_name: www-data
image: centos:6.6
command: /bin/bash
volumes:
- /Users/lilclimate/Public/workspace/meizu_company/data/etc:/data/etc
- /Users/lilclimate/Public/workspace/meizu_company/data/sh:/data/sh
- /Users/lilclimate/Public/workspace/meizu_company/data/opt:/data/opt
- /Users/lilclimate/Public/workspace/lua_demo:/data/openresty/nginx/lua
- /Users/lilclimate/Public/workspace/meizu_company/developer:/data/www
- /Users/lilclimate/Public/workspace:/data/www1
- /Users/lilclimate/Public/workspace/self:/data/www_self
redis:
container_name: redis
image: redis:3.2.1
ports:
- "6379:6379"
kong-dashboard:
container_name: kong-dashboard
image: pgbi/kong-dashboard
ports:
- 8084:8080
nginx-proxy:
container_name: nginx-proxy
build: ./nginx1.11-proxy
command: service nginx start
expose:
- 22
ports:
- 80:80
- 443:443
volumes_from:
- www-data
depends_on:
# - nginx-php1
# - nginx-php2
- openresty-php1
- openresty-php2
links:
# - nginx-php1:server1
# - nginx-php2:server2
- openresty-php1:server1
- openresty-php2:server2
extra_hosts:
- i.flyme.cn:172.16.200.220
openresty-1.11.2.1:
container_name: openresty-1.11.2.1
build: ./openresty1.11.2.1
command: service nginx start
ports:
- 8888:80
- 8080:8080
- 9090:9090
- 8083:8081
volumes_from:
- www-data
links:
- redis:redis
- mysql-master:mysql
extra_hosts:
- cs-api.meizu.com:192.168.99.100
- zsk-api.meizu.com:192.168.99.100
mysql-master:
container_name: mysql-master
image: mysql:5.7.16
privileged: true
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: dbname
MYSQL_USER: user
MYSQL_PASSWORD: 123456
volumes:
- /Users/lilclimate/Public/workspace/meizu_company/data/mysql_data:/var/lib/mysql
- /Users/lilclimate/Public/workspace/meizu_company/data/sh:/data/sh
command: /bin/sh /data/sh/run/mysql.sh
# nodejs:
# container_name: nodejs
# build: ./nodejs
# command: /bin/sh /data/sh/run/nodejs.sh
# ports:
# - 3001:3001
# volumes_from:
# - www-data
openresty-php1:
container_name: openresty-php1
build: ./openresty-php5.6
command: /bin/sh /data/sh/run/nginx-php.sh
privileged: true
ports:
- 8081:80
volumes_from:
- www-data
links:
- redis:redis
- mysql-master:mysql
extra_hosts:
- zsk-api.meizu.com:192.168.99.100
- or-api.meizu.com:192.168.99.100
openresty-php2:
container_name: openresty-php2
build: ./openresty-php5.6
command: /bin/sh /data/sh/run/nginx-php.sh
privileged: true
ports:
- 8082:80
volumes_from:
- www-data
links:
- redis:redis
- mysql-master:mysql
extra_hosts:
- zsk-api.meizu.com:192.168.99.100
- or-api.meizu.com:192.168.99.100
xunsearch:
container_name: xunsearch
build: ./xunsearch1.4.10
command: /bin/sh /data/sh/run/xs.sh
ports:
- 8383:8383
- 8384:8384
volumes_from:
- www-data