-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
169 lines (159 loc) · 3.67 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
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
version: "2"
volumes:
redis-data: {}
production_traefik: {}
services:
fastapi:
build:
context: microservices/fastapi
links:
- rabbit
env_file:
- ./microservices/fastapi/.fastapi_env
ml-service:
build:
context: microservices/ml-service
links:
- rabbit
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
dash-service:
build:
context: microservices/dash-service
links:
- rabbit
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
db-service:
build:
context: microservices/db-service
depends_on:
- rabbit
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbit"
RABBIT_PORT: "5672"
traefik:
build:
context: .
dockerfile: ./microservices/traefik/Dockerfile
depends_on:
- fastapi
volumes:
- production_traefik:/etc/traefik/acme
ports:
- "5000:5000"
- "8080:8080"
hbase:
build:
context: .
dockerfile: ./hbase_docker/Dockerfile
ports:
- "16010:16010"
- "8085:8085"
- "9095:9095"
expose:
- "8080"
- "9090"
- "16010"
- "9095"
- "8085"
restart: unless-stopped
rabbit:
image: rabbitmq:3.8.3-management
ports:
- "15672:15672"
hostname: rabbitmq
restart: unless-stopped
redis:
image: redis:5.0.5
ports:
- "6379:6379"
expose:
- "6379"
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
restart: unless-stopped
volumes:
- redis-data:/data
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
# restart: unless-stopped
# environment:
# - discovery.type=single-node
# - ELASTIC_PASSWORD=test
# - cluster.name=docker-cluster
# - bootstrap.memory_lock=true
# - xpack.security.enabled=false
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# mem_limit: 1g
# volumes:
# - "./esdata:/usr/share/elasticsearch/data"
# ports:
# - "9200:9200"
# kibana:
# image: docker.elastic.co/kibana/kibana:7.8.0
# volumes:
# - "./elk_configs/kibana.yml:/usr/share/kibana/config/kibana.yml"
# restart: unless-stopped
# ports:
# - "5601:5601"
# links:
# - elasticsearch
# depends_on:
# - elasticsearch
# logstash:
# image: docker.elastic.co/logstash/logstash:7.8.0
# volumes:
# - "./elk_configs/logstash.conf:/config-dir/logstash.conf"
# restart: unless-stopped
# command: logstash -f /config-dir/logstash.conf
# ports:
# - "9600:9600"
# - "7777:7777"
# links:
# - elasticsearch
# - kafka
kafka:
image: confluentinc/cp-kafka:5.2.0
restart: unless-stopped
depends_on:
- zookeeper
links:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
zookeeper:
image: confluentinc/cp-zookeeper:5.2.0
hostname: zookeeper
ports:
- "2181:2181"
expose:
- "2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
restart: unless-stopped