-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
129 lines (115 loc) · 2.63 KB
/
docker-compose.yaml
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
version: "2.0"
networks:
extnetwork:
ipam:
config:
- subnet: 172.19.0.0/16
gateway: 172.19.0.1
services:
server:
image: meiduo_server:latest
container_name: md_server
restart: always
volumes:
- /var/local/meiduo_mall/meiduo_server/logs:/var/log/
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
networks:
extnetwork:
ipv4_address: 172.19.0.2
web:
image: meiduo_web:latest
container_name: md_web
restart: always
volumes:
- /var/local/meiduo_mall/nginx/logs:/var/log/nginx/
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
networks:
extnetwork:
ipv4_address: 172.19.0.3
depends_on:
- server
links:
- server
ports:
- "8080:80"
- "8000:8000"
##---------------第一次构建时请打开注释----------------
#
# redis:
# image: redis:4.0
# container_name: md_redis
# restart: always
# volumes:
# - /var/local/meiduo_mall/redis/data:/data
# - /var/local/meiduo_mall/redis/conf/redis.conf:/etc/redis/redis.conf:rw
# logging:
# driver: json-file
# options:
# max-size: "5m"
# max-file: "3"
# command: redis-server /etc/redis/redis.conf --appendonly yes
# ports:
# - "6379:6379"
#
#
# ES:
# image: delron/elasticsearch-ik:2.4.6-1.0
# container_name: md_ES
# restart: always
# volumes:
# - /var/local/meiduo_mall/elasticsearch/data:/usr/share/elasticsearch/data
# logging:
# driver: json-file
# options:
# max-size: "30m"
# max-file: "2"
# ports:
# - "9200:9200"
#
#
# tracker:
# # tracker默认端口22122,不用专门映射
# image: delron/fastdfs
# container_name: md_FastDFS-tracker
# restart: always
# volumes:
# - /var/local/meiduo_mall/fdfs/tracker:/var/fdfs
# logging:
# driver: json-file
# options:
# max-size: "30m"
# max-file: "2"
# network_mode: "host"
# command: tracker
#
#
# storage:
# # storage默认端口8888
# image: delron/fastdfs
# container_name: md_FastDFS-storage
# restart: always
# volumes:
# - /var/local/meiduo_mall/fdfs/storage:/var/fdfs
# logging:
# driver: json-file
# options:
# max-size: "250m"
# max-file: "5"
# network_mode: "host"
# command: storage
# environment:
# - TRACKER_SERVER=121.4.47.229:22122
# depends_on:
# - tracker
#
#
##--------------主从数据库已单独部署完成---------------
##---------------第一次构建时请打开注释----------------