performance upgrades by using clickhouse for logs

This commit is contained in:
2026-05-31 20:39:33 +02:00
parent d3d60dcaa9
commit 9e95fe7403
10 changed files with 570 additions and 139 deletions
+2
View File
@@ -4,6 +4,8 @@ RUN apk add --no-cache linux-headers curl-dev \
&& docker-php-ext-install curl pcntl sockets || \
docker-php-ext-install curl pcntl
RUN apk add --no-cache curl
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
+1 -1
View File
@@ -1,6 +1,6 @@
FROM php:8.3-cli-alpine
RUN apk add --no-cache curl-dev git linux-headers
RUN apk add --no-cache curl-dev git linux-headers curl
RUN docker-php-ext-install curl pcntl sockets
+12
View File
@@ -2,4 +2,16 @@
mkdir -p /app/data
chmod -R 777 /app/data
rm -f /app/data/*.lock
# Wait for ClickHouse to be ready
echo "Waiting for ClickHouse..."
for i in $(seq 1 30); do
if wget --spider -q http://clickhouse:8123/ping 2>/dev/null; then
echo "ClickHouse is ready"
break
fi
echo " attempt $i..."
sleep 1
done
exec docker-php-entrypoint "$@"