-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
153 lines (144 loc) · 3.97 KB
/
compose.yml
File metadata and controls
153 lines (144 loc) · 3.97 KB
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
services:
elasticmq:
# https://github.com/softwaremill/elasticmq
image: softwaremill/elasticmq-native
profiles:
- elasticmq
ports:
- 9324:9324
- 9325:9325
volumes:
- elasticmq-data:/data
networks:
- elasticmq
rabbitmq:
# https://rabbitmq.com
image: rabbitmq:4.1.0-management-alpine
restart: unless-stopped
profiles:
- rabbitmq
healthcheck:
test:
rabbitmq-diagnostics -q ping && rabbitmq-diagnostics -q check_running &&
rabbitmq-diagnostics -q status && rabbitmq-diagnostics -q
check_local_alarms
start_period: 60s
interval: 10s
timeout: 10s
retries: 3
volumes:
- ./var/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./var/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
- rabbitmq-data:/var/lib/rabbitmq
- rabbitmq-logs:/var/log/rabbitmq
ports:
- 15672:15672
- 5672:5672
networks:
- rabbitmq
activemq:
# https://activemq.apache.org/components/artemis/documentation/latest/docker.html
image: apache/activemq-artemis:latest-alpine
profiles:
- activemq
ports:
- 61616:61616 # Default ActiveMQ port
- 8161:8161 # ActiveMQ Web Console
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8161/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
- activemq-data:/var/lib/artemis-instance
networks:
- activemq
azure-service-bus:
# https://github.com/Azure/azure-service-bus-emulator-installer
container_name: servicebus-emulator
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
profiles:
- azure-service-bus
ports:
- 5672:5672
- 5300:5300
environment:
SQL_SERVER: sqledge
MSSQL_SA_PASSWORD: ${MSSQL_SA_PASSWORD} # Password should be same as what is set for SQL Edge
ACCEPT_EULA: ${ACCEPT_EULA}
SQL_WAIT_INTERVAL: ${SQL_WAIT_INTERVAL:-0} # Optional: Time in seconds to wait for SQL to be ready (default is 15 seconds)
volumes:
- ${ASB_CONFIG_PATH}:/ServiceBus_Emulator/ConfigFiles/Config.json
depends_on:
- sqledge
networks:
sb-emulator:
aliases:
- sb-emulator
sqledge:
container_name: sqledge
image: mcr.microsoft.com/azure-sql-edge:latest
profiles:
- azure-service-bus
networks:
sb-emulator:
aliases:
- sqledge
environment:
ACCEPT_EULA: ${ACCEPT_EULA}
MSSQL_SA_PASSWORD: ${MSSQL_SA_PASSWORD}
mosquitto:
# https://github.com/eclipse/mosquitto
image: eclipse-mosquitto:latest
profiles:
- mosquitto
restart: unless-stopped
ports:
- 1883:1883
- 9009:9001
volumes:
- ./var/mosquitto:/mosquitto/config:rw
- mosquitto-data:/mosquitto/data:rw
hivemq:
# https://hivemq.com
image: hivemq/hivemq4:latest
profiles:
- hivemq
restart: unless-stopped
ports:
- 1883:1883
volumes:
- hivemq-data:/opt/hivemq/data:rw
kafka:
# https://kafka.apache.org
image: apache/kafka:latest
profiles:
- kafka
ports:
- 9093:9093
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://localhost:9092,CONTROLLER://localhost:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 3
networks:
elasticmq:
rabbitmq:
activemq:
sb-emulator:
volumes:
elasticmq-data:
rabbitmq-data:
rabbitmq-logs:
activemq-data:
mosquitto-data:
hivemq-data: