This commit is contained in:
2026-05-20 15:23:05 +03:00
commit 43c0739dfa
703 changed files with 61692 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM alpine:3.21
RUN addgroup -g 979 bitrix && \
adduser -D -u 979 -G bitrix bitrix
RUN apk add --no-cache bash expat libgcc libpq libstdc++ mariadb-connector-c musl unixodbc zlib sphinx sphinx-doc sphinx-php curl openssl ca-certificates tzdata && \
mkdir -pv /opt/sphinx/conf /opt/sphinx/log /opt/sphinx/run /opt/sphinx/dict /opt/sphinx/lib /opt/sphinx/binlogs
COPY start.sh /opt/sphinx/
COPY *.pak /opt/sphinx/dict/
COPY sample_sphinx.conf /opt/sphinx/conf/sphinx.conf
RUN ln -sf /dev/stdout /opt/sphinx/log/searchd.log && \
ln -sf /dev/stderr /opt/sphinx/log/query.log && \
chown -R bitrix:bitrix /opt/
# VOLUME ["/opt/sphinx/conf", "/opt/sphinx/log", "/opt/sphinx/dict", "/opt/sphinx/lib"]
USER bitrix:bitrix
EXPOSE 9312 9306
CMD ["bash", "/opt/sphinx/start.sh"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,47 @@
#
index rt
{
type = rt
rt_mem_limit = 128M
path = /opt/sphinx/lib/rt
rt_field = title
rt_field = content
rt_attr_uint = gid
}
#
searchd
{
listen = 9312
listen = 9306:mysql41
log = /opt/sphinx/log/searchd.log
query_log = /opt/sphinx/log/query.log
read_timeout = 5
client_timeout = 300
max_children = 30
persistent_connections_limit = 30
pid_file = /opt/sphinx/run/searchd.pid
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
max_packet_size = 8M
max_filters = 256
max_filter_values = 4096
max_batch_queries = 32
workers = threads
binlog_path = /opt/sphinx/binlogs
binlog_max_log_size = 512M
binlog_flush = 2
rt_flush_period = 3600
}
#
indexer
{
mem_limit = 128M
lemmatizer_cache = 128M
}
#
common
{
lemmatizer_base = /opt/sphinx/dict
}
#
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
#
#indexer --config /opt/sphinx/conf/sphinx.conf --rotate --all
searchd --config /opt/sphinx/conf/sphinx.conf --nodetach
#
+23
View File
@@ -0,0 +1,23 @@
FROM alpine:3.22
RUN addgroup -g 979 bitrix && \
adduser -D -u 979 -G bitrix bitrix
RUN apk add --no-cache bash expat libgcc libpq libstdc++ mariadb-connector-c musl unixodbc zlib sphinx sphinx-doc sphinx-php curl openssl ca-certificates tzdata && \
mkdir -pv /opt/sphinx/conf /opt/sphinx/log /opt/sphinx/run /opt/sphinx/dict /opt/sphinx/lib /opt/sphinx/binlogs
COPY start.sh /opt/sphinx/
COPY *.pak /opt/sphinx/dict/
COPY sample_sphinx.conf /opt/sphinx/conf/sphinx.conf
RUN ln -sf /dev/stdout /opt/sphinx/log/searchd.log && \
ln -sf /dev/stderr /opt/sphinx/log/query.log && \
chown -R bitrix:bitrix /opt/
# VOLUME ["/opt/sphinx/conf", "/opt/sphinx/log", "/opt/sphinx/dict", "/opt/sphinx/lib"]
USER bitrix:bitrix
EXPOSE 9312 9306
CMD ["bash", "/opt/sphinx/start.sh"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,47 @@
#
index rt
{
type = rt
rt_mem_limit = 128M
path = /opt/sphinx/lib/rt
rt_field = title
rt_field = content
rt_attr_uint = gid
}
#
searchd
{
listen = 9312
listen = 9306:mysql41
log = /opt/sphinx/log/searchd.log
query_log = /opt/sphinx/log/query.log
read_timeout = 5
client_timeout = 300
max_children = 30
persistent_connections_limit = 30
pid_file = /opt/sphinx/run/searchd.pid
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
max_packet_size = 8M
max_filters = 256
max_filter_values = 4096
max_batch_queries = 32
workers = threads
binlog_path = /opt/sphinx/binlogs
binlog_max_log_size = 512M
binlog_flush = 2
rt_flush_period = 3600
}
#
indexer
{
mem_limit = 128M
lemmatizer_cache = 128M
}
#
common
{
lemmatizer_base = /opt/sphinx/dict
}
#
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
#
#indexer --config /opt/sphinx/conf/sphinx.conf --rotate --all
searchd --config /opt/sphinx/conf/sphinx.conf --nodetach
#