-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yaml
83 lines (75 loc) · 1.86 KB
/
docker-compose.yaml
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
version: "3.3"
#name: 'grumpycat'
services:
zookeeper:
image: quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
networks:
- grumpycat-network
kafka:
image: quay.io/strimzi/kafka:0.23.0-kafka-2.8.0
command: [
"sh", "-c",
"bin/kafka-server-start.sh config/server.properties --override listeners=$${KAFKA_LISTENERS} --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT}"
]
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- grumpycat-network
catsdb:
image: docker.io/library/postgres:14.2
volumes:
- pg_data:/var/lib/postgresql
restart: always
environment:
POSTGRES_USER: cat
POSTGRES_PASSWORD: grumpy
POSTGRES_DB: catdb
networks:
- grumpycat-network
cat-server:
depends_on:
- catsdb
- zookeeper
- kafka
image: quay.io/wpernath/quarkus-grumpycat:v0.6.5
ports:
- "9001:8080"
restart: always
environment:
DB_user: cat
DB_password: grumpy
DB_host: catsdb
DB_dbname: catdb
networks:
- grumpycat-network
cat-client:
depends_on:
- cat-server
image: quay.io/wpernath/grumpycat-melonjs:v0.6.5
ports:
- "8086:8088"
restart: always
environment:
APPLICATION_BASESERVERURL: "http://0.0.0.0:9001/"
networks:
- grumpycat-network
volumes:
pg_data:
networks:
grumpycat-network:
name: grumpycat-whole-app-network