-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
134 lines (132 loc) · 3.62 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
version: "3.3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: elasticsearch_dev
restart: always
environment:
- cluster.name=elasticsearch
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
networks:
- parser-network
kibana:
container_name: kibana_dev
build:
context: .
dockerfile: ./kibana.Dockerfile
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 # address of elasticsearch docker container which kibana will connect
ports:
- 5601:5601
depends_on:
- elasticsearch # kibana will start when elasticsearch has started
networks:
- parser-network
container-parser:
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- RABBIT_URL=amqp://guest:guest@rabbitmq:5672/
- AZURE_STORAGE_ACCOUNT=actual-storage-here
- AZURE_STORAGE_ACCESS_KEY=actual-key-here
- AZURE_STORAGE_CONTAINER=actual-container-here
- LOG_ENTRIES_EXCHANGE=logentries_direct_durable
- PROCESS_ENTRY_ROUTING_KEY=process-entry
build:
context: .
dockerfile: ./parser/.devcontainer/Dockerfile
depends_on:
elasticsearch:
condition: service_healthy
volumes:
- ./parser:/workspace
command: sleep infinity
links:
- container-elasticuploader
networks:
- parser-network
container-postprocessor:
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- RABBIT_URL=amqp://guest:guest@rabbitmq:5672/
- PROCESSED_DATA_EXCHANGE=processeddata_direct_durable
- SAVE_DATA_ROUTING_KEY=save-data
- LOG_ENTRIES_EXCHANGE=logentries_direct_durable
- PROCESSING_QUEUE=processing_queue_durable
- PROCESS_ENTRY_ROUTING_KEY=process-entry
build:
context: .
dockerfile: ./postprocessor/.devcontainer/Dockerfile
depends_on:
elasticsearch:
condition: service_healthy
volumes:
- ./postprocessor:/workspace
command: sleep infinity
links:
- container-elasticuploader
networks:
- parser-network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq_dev
command: rabbitmq-server
ports:
- 15672:15672
volumes:
- rabbitmq_data:/data
expose:
- 5672
- 15672
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
networks:
- parser-network
container-elasticuploader:
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- RABBIT_URL=amqp://guest:guest@rabbitmq:5672/
- PROCESSED_DATA_EXCHANGE=processeddata_direct_durable
- SAVE_DATA_QUEUE=savedata_queue_durable
- SAVE_DATA_ROUTING_KEY=save-data
- EVENT_INDEX_NAME=event
- CONSUMPTION_INDEX_NAME=consumption
build:
context: .
dockerfile: ./elasticuploader/.devcontainer/Dockerfile
depends_on:
- rabbitmq
restart: on-failure
volumes:
- ./elasticuploader:/workspace
command: sleep infinity
networks:
- parser-network
volumes:
elasticsearch-data:
rabbitmq_data:
networks:
parser-network:
driver: bridge