-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose-distribute.yml
154 lines (152 loc) · 4.37 KB
/
docker-compose-distribute.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3"
services:
arex:
image: arexadmin01/arex:$AREX_VERSION
container_name: arex-front
restart: always
ports:
- '8088:8080'
volumes:
- ./arex-logs/arex-front:/usr/src/app/logs
environment:
- SERVICE_REPORT_URL=http://arex-api-service:8080
- SERVICE_SCHEDULE_URL=http://arex-schedule-service:8080
- SERVICE_STORAGE_URL=http://arex-storage-service:8080
depends_on:
- arex-api-service
- arex-schedule-service
- arex-storage-service
arex-api-service:
image: arexadmin01/arex-api:$AREX_VERSION
container_name: arex-api
restart: always
ports:
- '8090:8080'
volumes:
- ./arex-logs/arex-api:/logs
- ./additional-config:/usr/local/tomcat/additional-config
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.storage.service.url=http://arex-storage-service:8080
-Dspring.config.additional-location=/usr/local/tomcat/additional-config/
-Dspring.config.name=application,oauth
depends_on:
- mongodb
- redis
arex-storage-service1:
image: arexadmin01/arex-storage-serive:$AREX_VERSION
container_name: arex-storage1
restart: always
ports:
- '10093:8080'
volumes:
- ./arex-logs/arex-storage1:/logs
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
- mongodb
- redis
arex-storage-service2:
image: arexadmin01/arex-storage-serive:$AREX_VERSION
container_name: arex-storage2
restart: always
ports:
- '11093:8080'
volumes:
- ./arex-logs/arex-storage2:/logs
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
- mongodb
- redis
arex-storage-service:
container_name: storage-nginx
image: nginx
volumes:
- ./conf/nginx-storage.conf:/etc/nginx/nginx.conf
- ./arex-logs/nginx-storage:/var/log/nginx
ports:
- "8093:8080"
depends_on:
- arex-storage-service1
- arex-storage-service2
arex-schedule-service1:
image: arexadmin01/arex-replay-schedule:$AREX_VERSION
container_name: arex-schedule1
restart: always
ports:
- '10092:8080'
volumes:
- ./arex-logs/arex-schedule1:/logs
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.storage.service.api=http://arex-storage-service:8080
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
- mongodb
- redis
arex-schedule-service2:
image: arexadmin01/arex-replay-schedule:$AREX_VERSION
container_name: arex-schedule2
restart: always
ports:
- '11092:8080'
volumes:
- ./arex-logs/arex-schedule2:/logs
environment:
- TZ=Asia/Shanghai
- JAVA_OPTS=-Darex.mongo.uri=$AREX_MONGO_URI
-Darex.redis.uri=$AREX_REDIS_URI
-Darex.storage.service.api=http://arex-storage-service:8080
-Darex.api.service.api=http://arex-api-service:8080
depends_on:
- mongodb
- redis
arex-schedule-service:
container_name: schedule-nginx
image: nginx
volumes:
- ./conf/nginx-schedule.conf:/etc/nginx/nginx.conf
- ./arex-logs/nginx-schedule:/var/log/nginx
ports:
- "8092:8080"
depends_on:
- arex-schedule-service1
- arex-schedule-service2
mongodb:
image: mongo:5.0
container_name: arex-mongodb
restart: always
ports:
- 27017:27017
volumes:
- ./arex-data/mongodb:/data/db
- ./mongo-allone-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./arex-logs/mongodb:/var/log/mongodb
command: --auth
environment:
- MONGO_INITDB_ROOT_USERNAME=citizix
- MONGO_INITDB_ROOT_PASSWORD=S3cret
- MONGO_INITDB_DATABASE=rootdb
- MONGO_USERNAME=arex
- MONGO_PASSWORD=iLoveArex
redis:
image: redis:6.2.6
container_name: arex-redis
restart: always
command: --appendonly yes
ports:
- 6379:6379
volumes:
- ./arex-data/redis:/data
- ./arex-logs/redis:/var/log/redis