-
Notifications
You must be signed in to change notification settings - Fork 3
/
old.docker-compose.yml
190 lines (176 loc) · 4.87 KB
/
old.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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
version: '3.9'
services:
apigateway:
container_name: apigateway_krakend
image: devopsfaith/krakend
restart: always
networks:
- net_apigateway
volumes:
- ./conf/krakend.json:/etc/krakend/krakend.json
ports:
- 81:80
static:
container_name: static_srv_nginx
build:
context: .
dockerfile: BuildStatic.dockerfile
restart: always
networks:
- net_apigateway
volumes:
- "../nistagramstaticdata/data:/usr/share/nginx/html/data:ro"
profile:
container_name: profile_ms
restart: always
environment:
DB_USERNAME: ${DB_PROFILE_USERNAME}
DB_PASSWORD: ${DB_PROFILE_PASSWORD}
DOCKER_ENV_SET_PROD: ""
build:
context: .
dockerfile: Build.dockerfile
args:
ARG_TARGET_MS_GO: profile
volumes:
- ./common_pass.txt:/nistagram/common_pass.txt:ro
- ../logs/profile:/logs/profile
networks:
- net_apigateway
- net_profile
depends_on:
- db_profile
db_profile:
container_name: db_mysql_profile
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_PROFILE_PASSWORD}
MYSQL_DATABASE: profile
networks:
- net_profile
volumes:
- type: volume
source: data_profile
target: /var/lib/mysql
cap_add:
- SYS_NICE # CAP_SYS_NICE
auth:
container_name: auth_ms
restart: always
environment:
DB_USERNAME: ${DB_AUTH_USERNAME}
DB_PASSWORD: ${DB_AUTH_PASSWORD}
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
DOCKER_ENV_SET_PROD: ""
build:
context: .
dockerfile: Build.dockerfile
args:
ARG_TARGET_MS_GO: auth
volumes:
- ../logs/auth:/logs/auth
networks:
- net_apigateway
- net_auth
depends_on:
- db_auth
db_auth:
container_name: db_mysql_auth
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_AUTH_PASSWORD}
MYSQL_DATABASE: auth
networks:
- net_auth
volumes:
- type: volume
source: data_auth
target: /var/lib/mysql
cache_rbac_:
container_name: cache_redis1
image: redis
restart: always
networks:
- net_
volumes:
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
connection:
container_name: connection_ms
restart: always
environment:
DOCKER_ENV_SET_PROD: ""
build:
context: .
args:
ARG_TARGET_MS_GO: connection
dockerfile: Build.dockerfile
volumes:
- ../logs/connection:/logs/connection
networks:
- net_apigateway
- net_connection
depends_on:
- graphdb_connection
graphdb_connection:
container_name: graphdb_neo4j
image: neo4j
restart: always
environment:
- NEO4J_dbms_connector_bolt_advertised__address=0.0.0.0:7687
- NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687
- NEO4J_AUTH=none
networks:
- net_connection
volumes:
- type: volume
source: data_connection
target: /data
post:
container_name: post_ms
restart: always
environment:
DB_USERNAME: ${DB_POST_USERNAME}
DB_PASSWORD: ${DB_POST_PASSWORD}
DOCKER_ENV_SET_PROD: ""
build:
context: .
dockerfile: Build.dockerfile
args:
ARG_TARGET_MS_GO: post
volumes:
- "../nistagramstaticdata:/nistagramstaticdata"
- ../logs/post:/logs/post
networks:
- net_apigateway
- net_post
depends_on:
- mongo1
mongo1:
container_name: nosqldb_mongo1
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_AUTH_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_AUTH_PASSWORD}
networks:
- net_post
volumes:
- type: volume
source: data3
target: /data/db
networks:
net_apigateway:
net_profile:
net_auth:
net_connection:
net_post:
net_:
volumes:
data_profile:
data_auth:
data_connection:
data3: