├── Dockerfile ├── LICENSE ├── README.md └── render.yaml /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM typesense/typesense 2 | 3 | EXPOSE 8108 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Matthias 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # typesense-on-render 2 | Deploy [Typesense](https://typesense.org/) on [Render.com](https://render.com) 3 | 4 | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy) 5 | 6 | 7 | ## Environment Variables 8 | - `TYPESENSE_API_KEY` -- A bootstrap admin API key that allows all operations. Be sure to create additional keys with specific ACLs using the [key management API](https://typesense.org/docs/0.21.0/api/api-keys.html). (Default = `{randomly_generated_key}`) 9 | - `TYPESENSE_DATA_DIR` -- Path to the directory where data will be stored on disk. Probably don't need to change this, as it's also in the render.yaml (Default = `/typesense-data`) 10 | - `TYPESENSE_ENABLE_CORS` -- Allow JavaScript client to access Typesense directly from the browser. (Default = `true`) 11 | 12 | See full list of options you can configure [here](https://typesense.org/docs/0.21.0/guide/configure-typesense.html) -------------------------------------------------------------------------------- /render.yaml: -------------------------------------------------------------------------------- 1 | services: 2 | - type: web 3 | name: typesense 4 | env: docker 5 | repo: https://github.com/hmbrg/typesense-on-render.git 6 | plan: starter 7 | healthCheckPath: /health 8 | disk: 9 | name: typesense-data 10 | mountPath: /typesense-data 11 | sizeGB: 1 12 | envVars: 13 | - key: TYPESENSE_API_KEY 14 | generateValue: true 15 | - key: TYPESENSE_DATA_DIR 16 | value: /typesense-data 17 | - key: TYPESENSE_ENABLE_CORS 18 | value: true --------------------------------------------------------------------------------