-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
114 lines (114 loc) · 3.33 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
version: '2.1'
services:
process-manager:
image: 'teldev/melonade-process-manager:0.23.0'
ports:
- '8081:8080'
depends_on:
- redis
- zookeeper
- kafka
environment:
- melonade.namespace=docker-compose
- melonade.example=true
- runners.max=1
- 'kafka.conf.bootstrap.servers=kafka:9092'
- server.hostname=0.0.0.0
- server.port=8080
- server.enabled=true
- topic.kafka.number_partitions=10
- topic.kafka.replication_factor=1
- task-definition.type=ZOOKEEPER
- 'task-definition.zookeeper.connections=zookeeper:2181'
- workflow-definition.type=ZOOKEEPER
- 'workflow-definition.zookeeper.connections=zookeeper:2181'
- task-instance.type=REDIS
- task-instance.redis.host=redis
- workflow-instance.type=REDIS
- workflow-instance.redis.host=redis
- transaction-instance.type=REDIS
- transaction-instance.redis.host=redis
- distributed-lock.type=REDIS
- distributed-lock.redis.host=redis
event-logger:
image: 'teldev/melonade-event-logger:0.21.2'
ports:
- '8082:8080'
depends_on:
elasticsearch:
condition: service_healthy
kafka:
condition: service_started
environment:
- melonade.namespace=docker-compose
- runners.max=1
- server.hostname=0.0.0.0
- server.port=8080
- server.enabled=true
- topic.kafka.number_partitions=10
- topic.kafka.replication_factor=1
- 'kafka.conf.bootstrap.servers=kafka:9092'
- event-store.type=ELASTICSEARCH
- 'event-store.elasticsearch.hosts=http://elasticsearch:9200'
time-keeper:
image: 'teldev/melonade-time-keeper:0.21.0'
depends_on:
- redis
- zookeeper
- kafka
environment:
- melonade.namespace=docker-compose
- runners.max=1
- topic.kafka.number_partitions=10
- topic.kafka.replication_factor=1
- 'kafka.conf.bootstrap.servers=kafka:9092'
front-end:
image: 'teldev/melonade-front-end:0.22.0'
ports:
- '8083:80'
depends_on:
- event-logger
- process-manager
environment:
- PORT=80
- 'EVENT_LOGGER_HTTP_BASEURL=http://event-logger:8080/'
- 'PROCESS_MANAGER_HTTP_BASEURL=http://process-manager:8080/'
redis:
image: 'redis:alpine'
ports:
- '16379:6379'
elasticsearch:
image: 'elasticsearch:6.8.5'
ports:
- '9200:9200'
- '9300:9300'
environment:
- discovery.type=single-node
healthcheck:
test:
- CMD-SHELL
- 'curl --silent --fail localhost:9200/_cluster/health || exit 1'
interval: 30s
timeout: 30s
retries: 3
zookeeper:
image: 'bitnami/zookeeper:3'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:2.5.0'
ports:
- '9092:9092'
- '29092:29092'
volumes:
- './kafka-config/:/opt/bitnami/kafka/conf/:ro'
environment:
- 'KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181'
- ALLOW_PLAINTEXT_LISTENER=yes
- 'KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
- 'KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,PLAINTEXT_HOST://:29092'
- 'KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092'
depends_on:
- zookeeper