-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
148 lines (137 loc) · 3.89 KB
/
docker-compose.yml
File metadata and controls
148 lines (137 loc) · 3.89 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# TODO (ames0k0)
# - Set the images version
services:
stb--kafka_broker:
image: apache/kafka:latest
container_name: stb--kafka_broker
restart: unless-stopped
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://stb--kafka_broker:9092,CONTROLLER://localhost:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://stb--kafka_broker:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_CREATE_TOPICS: "stb_events"
AUTO_CREATE_TOPICS: "true"
healthcheck:
test: ["CMD", "/opt/kafka/bin/kafka-broker-api-versions.sh", "--bootstrap-server", "stb--kafka_broker:9092"]
interval: 10s
timeout: 5s
retries: 5
stb--rabbitmq:
image: rabbitmq:latest
container_name: stb--rabbitmq
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 10s
timeout: 5s
retries: 5
stb--redis:
image: redis:latest
container_name: stb--redis
restart: always
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
stb--minio:
image: quay.io/minio/minio:latest
restart: unless-stopped
container_name: stb--minio
command: ["minio", "server", "data"]
stb--postgres:
image: postgres
container_name: stb--postgres
environment:
POSTGRES_PASSWORD: simple
POSTGRES_DB: small_tool_box
POSTGRES_USER: postgres
PGDATA: /var/lib/postgresql/data
volumes:
- ./volumes/pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d small_tool_box"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
restart: unless-stopped
stb__core:
build:
context: stb__core
image: stb__core:v0.2.0
container_name: stb__core
stb__tg_bot:
build:
context: .
image: stb__tg_bot:v0.2.0
container_name: stb__tg_bot
restart: unless-stopped
env_file:
- .env
depends_on:
stb--kafka_broker:
condition: service_healthy
stb--rabbitmq:
condition: service_healthy
stb__core:
condition: service_completed_successfully
stb__tg_messages:
build:
context: stb__tg_messages
image: stb__tg_messages:v0.2.0
container_name: stb__tg_messages
restart: unless-stopped
env_file:
- .env
depends_on:
stb--rabbitmq:
condition: service_healthy
stb--redis:
condition: service_started
stb--minio:
condition: service_started
stb__core:
condition: service_completed_successfully
stb__stats_generator:
build:
context: stb__stats_generator
image: stb__stats_generator:v0.2.0
container_name: stb__stats_generator
restart: unless-stopped
env_file:
- .env
depends_on:
stb--postgres:
condition: service_healthy
stb__tg_messages:
condition: service_started
stb__core:
condition: service_completed_successfully
stb__events_analyzer:
build:
context: stb__events_analyzer
image: stb__events_analyzer:v0.2.0
container_name: stb__events_analyzer
restart: unless-stopped
env_file:
- .env
depends_on:
stb--kafka_broker:
condition: service_healthy
stb--postgres:
condition: service_healthy
stb__core:
condition: service_completed_successfully