-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
141 lines (141 loc) · 4.08 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
139
140
141
version: '3.7'
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- '2181:2181'
kafka:
image: wurstmeister/kafka
container_name: kafka
depends_on:
- zookeeper
ports:
- '9092:9092'
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
portal-service-mongodb:
image: 'mongo:latest'
container_name: portal-service-mongodb
ports:
- '27017:27017'
authserver-mongodb:
image: 'mongo:latest'
container_name: authserver-mongodb
ports:
- '27018:27017'
app:
image: 'docker-logs-elk/dummy-app:1.0.0'
build:
context: phonebridge-elastic-stack/dummy-app
dockerfile: Dockerfile
phonebridge-discovery:
image: 'phonebridge-discovery'
build:
context: phonebridge-discovery
dockerfile: Dockerfile.dev
ports:
- '8761:8761'
phonebridge-admin:
image: 'phonebridge-admin'
build:
context: phonebridge-admin
dockerfile: Dockerfile.dev
ports:
- '8093:8093'
depends_on:
- phonebridge-discovery
phonebridge-config-server:
image: 'phonebridge-config-server'
build:
context: phonebridge-config-server
dockerfile: Dockerfile.dev
ports:
- '8887:8887'
depends_on:
- kafka
- phonebridge-discovery
- phonebridge-admin
phonebridge-portal:
image: 'phonebridge-portal'
build:
context: phonebridge-portal
dockerfile: Dockerfile.dev
ports:
- '8080:8080'
depends_on:
- portal-service-mongodb
- phonebridge-discovery
- phonebridge-admin
- phonebridge-config-server
phonebridge-authserver:
image: 'phonebridge-authserver'
build:
context: phonebridge-authserver
dockerfile: Dockerfile.dev
ports:
- '8081:8081'
depends_on:
- authserver-mongodb
- phonebridge-discovery
- phonebridge-admin
- phonebridge-config-server
phonebridge-gateway-server:
image: 'phonebridge-gateway-server'
build:
context: phonebridge-gateway-server
dockerfile: Dockerfile.dev
ports:
- '8085:8085'
depends_on:
- phonebridge-discovery
- phonebridge-admin
- phonebridge-config-server
filebeat:
hostname: filebeat
image: 'docker-logs-elk/filebeat:1.0.0'
build:
context: phonebridge-elastic-stack/filebeat
dockerfile: Dockerfile
volumes:
- '/var/lib/docker/containers:/usr/share/dockerlogs/data:ro'
- '/var/run/docker.sock:/var/run/docker.sock'
links:
- logstash
kibana:
image: 'kibana:7.6.2'
environment:
- LOGGING_QUIET=true
links:
- elasticsearch
ports:
- '5601:5601'
logstash:
hostname: logstash
image: 'docker-logs-elk/logstash:1.0.0'
build:
context: phonebridge-elastic-stack/logstash
dockerfile: Dockerfile
ports:
- '5044:5044'
environment:
LOG_LEVEL: error
links:
- elasticsearch
elasticsearch:
hostname: elasticsearch
image: 'docker-logs-elk/elasticsearch:1.0.0'
build:
context: phonebridge-elastic-stack/elasticsearch
dockerfile: Dockerfile
environment:
- cluster.name=docker-logs-elk-cluster
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
ulimits:
memlock: {soft: -1, hard: -1}
ports:
- '9200:9200'