forked from DutchKevv/coinpush-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
138 lines (128 loc) · 3.13 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
127
128
129
130
131
132
133
134
135
136
137
138
version: '3.7'
services:
elk:
build: ./server-elk
image: sebp/elk
container_name: elk
ports:
- 5601:5601
- 9200:9200
- 5044:5044
environment:
ELASTICSEARCH_START: 1
LOGSTASH_START: 1
KIBANA_START: 1
ES_CONNECT_RETRY: 180
LS_OPTS: "--config.reload.automatic"
volumes:
- ./server-elk/elasticsearch/_data:/var/lib/elasticsearch
- ./server-elk/logstash/_data:/usr/local/etc
- ./server-elk/logstash/conf.d:/etc/logstash/conf.d
depends_on:
- mongodb
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
MONGO_DATA_DIR: /data/db
MONGO_LOG_DIR: /dev/null
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
command: mongod --auth
redis:
image: "redis"
ports:
- 6379
container_name: redis
volumes:
- ./_data/redis:/data
gateway:
image: registry.coinpush.app/gateway
container_name: gateway
build:
context: .
dockerfile: server-gateway/Dockerfile
ports:
- 3100:3100
volumes:
- ./_config:/usr/src/app/_config
- ./server-gateway/.tmp:/usr/src/app/server-gateway/.tmp
- ./server-gateway/_log:/usr/src/app/server-gateway/_log
- /usr/src/app/server-gateway/node_modules
links:
- redis
cache:
image: registry.coinpush.app/cache
container_name: "cache"
build:
context: .
dockerfile: server-cache/Dockerfile
ports:
- 3001
volumes:
- ./_config:/usr/src/app/_config
- ./server-cache/_log:/usr/src/app/server-cache/_log
- /usr/src/app/server-cache/node_modules
links:
- redis
- mongodb
user:
image: registry.coinpush.app/user
container_name: user
build:
context: .
dockerfile: server-user/Dockerfile
ports:
- 3008
volumes:
- ./_config:/usr/src/app/_config
- ./server-user/_log:/usr/src/app/server-user/_log
- /usr/src/app/server-user/node_modules
links:
- redis
- mongodb
notify:
image: registry.coinpush.app/notify
container_name: notify
build:
context: .
dockerfile: server-notify/Dockerfile
ports:
- 3010
volumes:
- ./_config:/usr/src/app/_config
- ./server-notify/_log:/usr/src/app/server-notify/_log
- /usr/src/app/server-notify/node_modules
links:
- redis
- mongodb
comment:
image: registry.coinpush.app/comment
container_name: comment
build:
context: .
dockerfile: server-comment/Dockerfile
ports:
- 3009
volumes:
- ./_config:/usr/src/app/_config
- ./server-comment/_log:/usr/src/app/server-comment/_log
- /usr/src/app/server-comment/node_modules
links:
- redis
- mongodb
event:
image: registry.coinpush.app/event
container_name: event
build:
context: .
dockerfile: server-event/Dockerfile
ports:
- 3011
volumes:
- ./_config:/usr/src/app/_config
- ./server-event/_log:/usr/src/app/server-event/_log
- /usr/src/app/server-event/node_modules
links:
- redis
- mongodb