-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
129 lines (121 loc) · 2.95 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: "3"
services:
zookeeper:
image: confluentinc/cp-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 2181:2181
kafka:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
mysql:
image: mysql
container_name: mysql-8.3.0
restart: always
environment:
MYSQL_USER: test
MYSQL_ROOT_USER: root
MYSQL_PASSWORD: "password"
MYSQL_ROOT_PASSWORD: "password"
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- mysql-db:/var/lib/mysql
userservice:
image: user-service
container_name: user-service
ports:
- "9810:9810"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: 9092
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DB: userservice
depends_on:
- kafka
- mysql
- authservice
expenseservice:
image: expense-service
container_name: expense-service
ports:
- "9820:9820"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: 9092
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DB: expenseservice
depends_on:
- kafka
- mysql
llmservice:
image: llm-service
container_name: llm-service
ports:
- "8010:8010"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: 9092
OPENAI_API_KEY: uhL33lPfvF1I32YAJk1bj3sjC29oNjDD
depends_on:
- kafka
- mysql
- expenseservice
- userservice
authservice:
image: auth-service
container_name: auth-service
ports:
- "9010:9010"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: 9092
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DB: authservice
depends_on:
- kafka
- mysql
kong-service:
image: kong
volumes:
- "./config:/usr/local/kong/declarative"
- "./custom-plugins:/usr/local/share/lua/5.1/kong/plugins"
environment:
KONG_DATABASE: "off"
KONG_DECLARATIVE_CONFIG: "/usr/local/kong/declarative/kong.yml"
KONG_PROXY_ACCESS_LOG: "/dev/stdout"
KONG_ADMIN_ACCESS_LOG: "/dev/stdout"
KONG_PROXY_ERROR_LOG: "/dev/stderr"
KONG_ADMIN_ERROR_LOG: "/dev/stderr"
KONG_ADMIN_LISTEN: "0.0.0.0:8001, 0.0.0.0:8444 ssl"
KONG_LOG_LEVEL: "debug"
KONG_PLUGINS: "custom-auth"
KONG_LUA_PACKAGE_PATH: "/usr/local/share/lua/5.1/?.lua;;"
ports:
- "8000:8000/tcp"
- "127.0.0.1:7990:8001/tcp"
- "8443:8443/tcp"
- "127.0.0.1:8444:8444/tcp"
depends_on:
- authservice
volumes:
mysql-db:
driver: local