-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-dev.yml
More file actions
223 lines (216 loc) · 5.91 KB
/
compose-dev.yml
File metadata and controls
223 lines (216 loc) · 5.91 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
services:
minio:
image: minio/minio
networks:
- nodehistj
volumes:
- minio_storage:/data
command: server --console-address ":9001" /data
healthcheck:
test: mc ready local || exit 1
start_period: 30s
interval: 5s
timeout: 10s
retries: 5
restart: unless-stopped
environment:
- MINIO_ROOT_USER=${S3_USER:-user}
- MINIO_ROOT_PASSWORD=${S3_PASSWORD:-password}
redis:
image: redis:alpine
networks:
- nodehistj
healthcheck:
test: redis-cli ping || exit 1
start_period: 30s
interval: 5s
timeout: 10s
retries: 5
restart: unless-stopped
redpanda:
image: redpandadata/redpanda
restart: unless-stopped
hostname: redpanda
networks:
- nodehistj
command:
- redpanda
- start
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:29092,OUTSIDE://redpanda:9092
volumes:
- redpanda_dev_data:/var/lib/redpanda/data
healthcheck:
test: ["CMD", "rpk", "cluster", "health"]
start_period: 20s
interval: 10s
timeout: 5s
retries: 3
postgres:
image: postgres:18-alpine
networks:
- nodehistj
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER:-user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
volumes:
- postgres_storage:/var/lib/postgresql
- ./pgsql:/docker-entrypoint-initdb.d/
healthcheck:
test: pg_isready -U postgres || exit 1
start_period: 30s
interval: 5s
timeout: 10s
retries: 5
# Сервис загрузки файлов nodelist с FTP
# Основные зависимости: MinIO, Kafka
nodehistj-download-nodelists:
image: gavrilovegor519/nodehistj-download-nodelists:master
build:
context: .
dockerfile: Dockerfile
args:
SERVICE_NAME: nodehistj-download-nodelists
SKIP_TESTS: "true"
networks:
- nodehistj
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
environment:
- KAFKA_BOOTSTRAP_SERVER=redpanda:9092
- S3_URL=http://minio:9000
- S3_USER=${S3_USER:-user}
- S3_PASSWORD=${S3_PASSWORD:-password}
- S3_BUCKET=nodehistj
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
- FTP_DOWNLOAD_FROM_YEAR=${FTP_DOWNLOAD_FROM_YEAR:-2025}
- FTP_HOST=${FTP_HOST:-wfido.ru}
- FTP_PATH=${FTP_PATH:-/nodehist/}
- FTP_USER=${FTP_USER:-anonymous}
- FTP_PASSWORD=${FTP_PASSWORD:-anonymous@}
depends_on:
minio:
condition: service_healthy
redpanda:
condition: service_healthy
# Сервис работы с историческими данными nodelist
# Основные зависимости: MinIO, Kafka, PostgreSQL, Redis
nodehistj-historic-nodelists:
image: gavrilovegor519/nodehistj-historic-nodelists:master
build:
context: .
dockerfile: Dockerfile
args:
SERVICE_NAME: nodehistj-historic-nodelists
SKIP_TESTS: "true"
secrets:
- github_username
- github_token
networks:
- nodehistj
ports:
- "8081:8080"
restart: unless-stopped
environment:
- KAFKA_BOOTSTRAP_SERVER=redpanda:9092
- REDIS_HOST=redis
- S3_URL=http://minio:9000
- S3_USER=${S3_USER:-user}
- S3_PASSWORD=${S3_PASSWORD:-password}
- S3_BUCKET=nodehistj
- POSTGRES_HOST=postgres:5432
depends_on:
minio:
condition: service_healthy
redpanda:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Сервис работы с актуальными данными nodelist
# Основные зависимости: MinIO, Kafka, PostgreSQL, Redis
nodehistj-newest-nodelists:
image: gavrilovegor519/nodehistj-newest-nodelists:master
build:
context: .
dockerfile: Dockerfile
args:
SERVICE_NAME: nodehistj-newest-nodelists
SKIP_TESTS: "true"
secrets:
- github_username
- github_token
networks:
- nodehistj
ports:
- "8082:8080"
restart: unless-stopped
environment:
- KAFKA_BOOTSTRAP_SERVER=redpanda:9092
- REDIS_HOST=redis
- S3_URL=http://minio:9000
- S3_USER=${S3_USER:-user}
- S3_PASSWORD=${S3_PASSWORD:-password}
- S3_BUCKET=nodehistj
- POSTGRES_HOST=postgres:5432
depends_on:
minio:
condition: service_healthy
redpanda:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Сервис сравнения исторических и актуальных данных
# Основные зависимости: Kafka, PostgreSQL, Redis
nodehistj-history-diff:
image: gavrilovegor519/nodehistj-history-diff:master
build:
context: .
dockerfile: Dockerfile
args:
SERVICE_NAME: nodehistj-history-diff
SKIP_TESTS: "true"
secrets:
- github_username
- github_token
networks:
- nodehistj
ports:
- "8083:8080"
restart: unless-stopped
environment:
- KAFKA_BOOTSTRAP_SERVER=redpanda:9092
- REDIS_HOST=redis
- S3_URL=http://minio:9000
- S3_USER=${S3_USER:-user}
- S3_PASSWORD=${S3_PASSWORD:-password}
- S3_BUCKET=nodehistj
- POSTGRES_HOST=postgres:5432
depends_on:
minio:
condition: service_healthy
redpanda:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
secrets:
github_username:
environment: GITHUB_USERNAME
github_token:
environment: GITHUB_TOKEN
networks:
nodehistj:
driver: bridge
volumes:
minio_storage:
postgres_storage:
redpanda_dev_data: