-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
189 lines (189 loc) · 4.54 KB
/
docker-compose-dev.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
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
services:
npm_cache:
build:
context: ./
dockerfile: npm_cache/Dockerfile
image: npm_cache
control_center:
build:
context: control_center
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
rss_fetch:
build:
context: workers/rss_fetch
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
rss_links_fetch_01:
build:
context: workers/rss_links_fetch
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
hostname: rss_links_fetch_01
depends_on:
- npm_cache
restart: unless-stopped
rss_links_fetch_02:
build:
context: workers/rss_links_fetch
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
hostname: rss_links_fetch_02
depends_on:
- npm_cache
restart: unless-stopped
analysis:
build:
context: workers/analysis
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
link_writer:
build:
context: workers/link_writer
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
err_log_writer:
build:
context: workers/err_log_writer
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
link_fix_detector:
build:
context: workers/link_fix_detector
dockerfile: Dockerfile
env_file:
- .env
networks:
- internal
depends_on:
- npm_cache
restart: unless-stopped
redis:
build:
context: infrastructure/redis
dockerfile: Dockerfile
target: base
networks:
- internal
restart: unless-stopped
container_name: redis_server
hostname: redis_server
ports:
- 127.0.0.1:6379:6379
pg-0:
image: "docker.io/bitnami/postgresql-repmgr:15"
env_file:
- .env
networks:
- internal
ports:
- 127.0.0.1:5432:5432
restart: unless-stopped
volumes:
- ./infrastructure/datadir/pgdata_dev:/bitnami/postgresql
- ./infrastructure/postgre/init:/docker-entrypoint-initdb.d
environment:
POSTGRESQL_POSTGRES_PASSWORD: ${POSTGRESQL_DB_PASSWORD} # admin
POSTGRESQL_USERNAME: ${POSTGRESQL_DB_USER}
POSTGRESQL_PASSWORD: ${POSTGRESQL_DB_PASSWORD}
POSTGRESQL_DATABASE: ${POSTGRESQL_DB_NAME}
REPMGR_PASSWORD: ${REPMGR_PASSWORD}
REPMGR_PRIMARY_HOST: pg-0
REPMGR_PRIMARY_PORT: 5432
REPMGR_PARTNER_NODES: pg-0
REPMGR_NODE_NAME: pg-0
REPMGR_NODE_NETWORK_NAME: pg-0
REPMGR_PORT_NUMBER: 5432
kafka-0:
image: "docker.io/bitnami/kafka:3.5.1-debian-11-r7"
mem_limit: "2GB"
networks:
- internal
ports:
- 127.0.0.1:9092:9092
- 127.0.0.1:9093:9093
restart: unless-stopped
environment:
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka-0:9093
- KAFKA_CFG_NODE_ID=0
- KAFKA_KRAFT_CLUSTER_ID=abcdefghijklmnopqrstuv
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
- ./infrastructure/datadir/kafka_dev_data:/bitnami/kafka
trace_logger:
image: "jaegertracing/all-in-one"
networks:
- internal
environment:
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: false
BADGER_DIRECTORY_VALUE: /badger/data
BADGER_DIRECTORY_KEY: /badger/key
COLLECTOR_OTLP_ENABLED: true
# COLLECTOR_ZIPKIN_HOST_PORT: 9411
# COLLECTOR_ZIPKIN_HTTP_ENABLED: true
ports:
- 16686:16686
- 14268:14268
#- 9411:9411
- 5778:5778
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
restart: unless-stopped
volumes:
- ./infrastructure/datadir/jaeger:/badger
kafka_ui:
image: "provectuslabs/kafka-ui:latest"
networks:
- internal
ports:
- 127.0.0.1:8081:8080
environment:
DYNAMIC_CONFIG_ENABLED: 'true'
restart: unless-stopped
volumes:
- ./infrastructure/kafka-ui/config-dev.yml:/etc/kafkaui/dynamic_config.yaml
networks:
internal:
name: internal