Creating Dockerfile for Typesense with Environment Variables
TLDR andrew inquired about creating an ideal Dockerfile for Typesense. Jason provided instructions on how to set it up properly, also mentioning that environment variables are documented on their official webpage. After testing these instructions, andrew indeed managed to make it work using Railway.
1
1
Jan 25, 2023 (11 months ago)
andrew
04:14 PMJason
10:11 PMJason
10:11 PMandrew
10:14 PMJason
10:21 PMJason
10:25 PMFROM typesense/typesense:0.24.0.rcn58
RUN mkdir -p /etc/typesense
COPY typesense-server.ini /etc/typesense
EXPOSE 8108
ENTRYPOINT ["/opt/typesense-server", "--config=/etc/typesense/typesense-server.ini"]
Jason
10:26 PMtypesense-server.ini
in the same directory as this dockerfile1
andrew
10:29 PMJan 26, 2023 (10 months ago)
andrew
12:26 AM1
andrew
12:26 AMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Problems with Typesense Deployment on Railway
Peter asked for advice on deploying Typesense on Railway and experienced crash issues despite appropriate dockerfile configuration and error handling, Kishore Nallan has yet to offer a solution.
Resolving Issues with Infix and Prefix in Query Searches
Daren struggled with searches missing values in production. Jason and Kishore Nallan offered insights and created new features to help solve the problem, which was then tested and deployed by Daren.
Using Typesense in Docker Container – Importing JSONL File
Hakim faced 'Empty reply from server' error when importing a JSONL file into a Typesense-Docker container. Kishore Nallan and Jason suggested checking the docker logs and increasing default RAM and CPU allocation. Finally, Hakim successfully indexed the documents using a PHP script.
Typesense nodes setup using environment variable
Pradyuman requested a feature to set Typesense nodes using environment variables. Jason found the idea useful but suggested opening a GitHub issue, which Pradyuman did promptly. The feature is not likely to be added in the upcoming release due to timing.
Deploying Typesense in GCP Cloud Run
Christian had difficulties obtaining an API key for deploying Typesense in GCP Cloud Run. Kishore Nallan guided on API key creation when setting up Typesense server and suggested checking the Typesense self-hosting guide. Christian decided to run the Typesense in Kubernetes instead of Cloud Run. Nasim thanked Christian for sharing findings.