# Automatic Updates (Docker compose)

1. Change `VERSION` in `.env` to be the major version you want to pin. i.e

```sql
VERSION=7
```

2. Set a cronjob to run `update_secoda.sh` once a week (we do weekly deploys for onprem)

```sql
crontab -e

# Add this line to to crontab editor
0 5 * * * /home/ubuntu/<YOUR_ON_PREMISE_PATH>/update-secoda.sh
```

3. Secoda will now be updated each day at 12:00am EST to the latest version


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.secoda.co/enterprise/self-hosted-secoda/additional-resources/setup-automatic-updates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
