forked from mantzas/patron
-
Notifications
You must be signed in to change notification settings - Fork 67
/
docker-compose.yml
115 lines (115 loc) · 3.41 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
services:
kafka:
image: confluentinc/cp-kafka:7.7.1
hostname: broker
ports:
- "9092:9092"
- "9101:9101"
environment:
KAFKA_NODE_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9101
KAFKA_JMX_HOSTNAME: localhost
KAFKA_PROCESS_ROLES: 'broker,controller'
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@broker:29093'
KAFKA_LISTENERS: 'PLAINTEXT://broker:29092,CONTROLLER://broker:29093,PLAINTEXT_HOST://0.0.0.0:9092'
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
# Replace CLUSTER_ID with a unique base64 UUID using "bin/kafka-storage.sh random-uuid"
# See https://docs.confluent.io/kafka/operations-tools/kafka-tools.html#kafka-storage-sh
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
rabbitmq:
image: docker.io/bitnami/rabbitmq:3.13
ports:
- '4369:4369'
- '5551:5551'
- '5552:5552'
- '5672:5672'
- '25672:25672'
- '15672:15672'
environment:
- RABBITMQ_USERNAME=bitnami
- RABBITMQ_PASSWORD=bitnami
- RABBITMQ_SECURE_PASSWORD=yes
- RABBITMQ_MANAGEMENT_ALLOW_WEB_ACCESS=yes
volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
mysql:
image: mysql:9
restart: always
environment:
MYSQL_DATABASE: "patrondb"
MYSQL_USER: "patron"
MYSQL_PASSWORD: "test123"
MYSQL_ROOT_PASSWORD: "test123"
TIMEZONE: UTC
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- mysql_data:/var/lib/mysql
redis:
image: docker.io/bitnami/redis:6.2
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
volumes:
- "redis_data:/bitnami/redis/data"
localstack:
image: localstack/localstack:3
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
hivemq:
image: hivemq/hivemq4:4.28.5
restart: always
ports:
- target: 1883
published: 1883
protocol: tcp
mode: host
- target: 8080
published: 8080
protocol: tcp
mode: host
environment:
HIVEMQ_CONTROL_CENTER_USER: "admin"
HIVEMQ_CONTROL_CENTER_PASSWORD: "123456"
HIVEMQ_CLUSTER_TRANSPORT_TYPE: "TCP"
mongo:
image: mongo:8
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
otelcol:
image: otel/opentelemetry-collector-contrib
restart: unless-stopped
command: [ "--config=/etc/otelcol-config.yaml" ]
volumes:
- ./docker-compose/otelcol-config.yaml:/etc/otelcol-config.yaml
ports:
- 4317:4317
volumes:
rabbitmq_data:
driver: local
mysql_data:
driver: local
redis_data:
driver: local