forked from eatvio/eatvio-infra
feat(typesense): added service typesense for fuzzy search
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.env
|
||||
app/
|
||||
mysql_data/
|
||||
typesense-data/
|
||||
|
||||
@@ -124,6 +124,15 @@ services:
|
||||
ns-eatvio:
|
||||
ipv4_address: 172.118.0.4
|
||||
|
||||
typesense:
|
||||
image: typesense/typesense:26.0
|
||||
restart: on-failure
|
||||
ports:
|
||||
- "8108:8108"
|
||||
volumes:
|
||||
- ./typesense-data:/data
|
||||
command: "--data-dir /data --api-key=xyz --enable-cors"
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM phpdockerio/php:8.2-fpm
|
||||
WORKDIR "/application"
|
||||
|
||||
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
|
||||
SUPERCRONIC=supercronic-linux-amd64 \
|
||||
SUPERCRONIC_SHA1SUM=cd48d45c4b10f3f0bfdd3a57d054cd05ac96812b
|
||||
# ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
|
||||
# SUPERCRONIC=supercronic-linux-amd64 \
|
||||
# SUPERCRONIC_SHA1SUM=cd48d45c4b10f3f0bfdd3a57d054cd05ac96812b
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||
RUN apt-get update && \
|
||||
@@ -12,17 +12,19 @@ RUN apt-get update && \
|
||||
php8.2-gd \
|
||||
php8.2-mysql \
|
||||
php8.2-sqlite3 \
|
||||
php8.2-intl \
|
||||
php8.2-pgsql \
|
||||
python3-pkg-resources supervisor \
|
||||
nodejs && npm install -g npm@10.1.0 \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
|
||||
RUN curl -fsSLO "$SUPERCRONIC_URL" \
|
||||
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
|
||||
&& chmod +x "$SUPERCRONIC" \
|
||||
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
|
||||
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
|
||||
# RUN curl -fsSLO "$SUPERCRONIC_URL" \
|
||||
# && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
|
||||
# && chmod +x "$SUPERCRONIC" \
|
||||
# && mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
|
||||
# && ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
|
||||
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ffmpeg && \
|
||||
@@ -31,4 +33,4 @@ RUN apt-get update && \
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
|
||||
CMD ["supercronic", "/application/crontab"]
|
||||
# CMD ["supercronic", "/application/crontab"]
|
||||
|
||||
Reference in New Issue
Block a user