-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
111 lines (99 loc) · 2.5 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
version: "3.9"
services:
zookeeper:
image: docker.io/bitnami/zookeeper:3.8
ports:
- "2181:2181"
volumes:
- "./running:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
wait_for_zookeeper:
image: docker.io/briceburg/docker-compose-wait
command:
"wait"
environment:
- WAIT_HOSTS=zookeeper:8080
- WAIT_TIMEOUT=120
kafka:
image: docker.io/bitnami/kafka:3.2.3
ports:
- "9092:9092"
volumes:
- "./running:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
wait_for_zookeeper:
condition: service_completed_successfully
wait_for_kafka:
image: docker.io/briceburg/docker-compose-wait
command:
"wait"
environment:
- WAIT_HOSTS=kafka:9092
- WAIT_TIMEOUT=120
efak:
image: docker.io/trivadis/efak
ports:
- "8048:8048"
environment:
- ZKSERVER=zookeeper:2181
depends_on:
- wait_for_zookeeper
- wait_for_kafka
etcd:
image: docker.io/bitnami/etcd
ports:
- "2379:2379"
environment:
- ALLOW_NONE_AUTHENTICATION=yes
redis:
image: docker.io/redis:6.2.7
ports:
- "6379:6379"
mysql:
image: docker.io/mysql:5.7.40
ports:
- "3306:3306"
volumes:
- "./running/mysql:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=default_database
- MYSQL_USER=not_a_user
- MYSQL_PASSWORD=password
mongo:
image: docker.io/mongo:6.0.2
ports:
- "27017:27017"
volumes:
- "./running/mongodb:/data/db"
wait_for_all_remained:
image: docker.io/briceburg/docker-compose-wait
command:
"wait"
environment:
- WAIT_HOSTS=etcd:2379, redis:6379, mysql:3306, mongo:27017
- WAIT_TIMEOUT=120
livechat:
image: docker.io/a47451516/livechat:latest
ports:
- "1234:1235"
- "1345:1345"
- "5678:5678"
volumes:
- "./default_config_files:/appdata/config"
environment:
- MONGO_ADDRESS=mongodb://mongo:27017/default_database
- MYSQL_ADDRESS=root:password@tcp(mysql:3306)/default_database?parseTime=true
- REDIS_ADDRESS=redis://redis:6379/0
- NOTIFICATION_QUEUE_URL=kafka:9092
- MESSAGE_QUEUE_URL=kafka:9092
- ETCD_ADDRESS=etcd:2379
depends_on:
wait_for_kafka:
condition: service_completed_successfully
wait_for_all_remained:
condition: service_completed_successfully