forked from beatlabs/patron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (106 loc) · 2.7 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
version: "3.8"
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:2'
ports:
- '9092:9092'
- '9093:9093'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
depends_on:
- zookeeper
rabbitmq:
image: docker.io/bitnami/rabbitmq:3.9
ports:
- '4369:4369'
- '5551:5551'
- '5552:5552'
- '5672:5672'
- '25672:25672'
- '15672:15672'
environment:
- RABBITMQ_SECURE_PASSWORD=yes
volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
mysql:
image: mysql:5.7
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-db:/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:0.14
network_mode: bridge
ports:
- "127.0.0.1:4510-4559:4510-4559" # external service port range
- "127.0.0.1:4566:4566" # LocalStack Edge Proxy
environment:
- SERVICES=sns,sqs
- DEBUG=1
- DATA_DIR=${DATA_DIR-}
- HOST_TMP_FOLDER=${TMPDIR:-/tmp/}localstack
- DOCKER_HOST=unix:///var/run/docker.sock
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=eu-west-1
volumes:
- "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
hivemq:
image: hivemq/hivemq4:latest
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:5
restart: always
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
rabbitmq_data:
driver: local
mysql-db:
redis_data:
driver: local