You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Elasticsearch and Kibana on your local machine using a simple shell script. This setup uses [Docker](https://www.docker.com/) behind the scenes to install and run the services.
3
+
Run Sequin and its supporting services on your local machine using a simple shell script. This setup uses [Docker](https://www.docker.com/) behind the scenes to install and run the services.
4
4
5
5
> [!IMPORTANT]
6
6
> This script is for local testing only. Do not use it in production!
7
-
> For production installations refer to the official documentation for [Elasticsearch](https://www.elastic.co/downloads/elasticsearch) and [Kibana](https://www.elastic.co/downloads/kibana).
7
+
> For production installations refer to the [official Sequin documentation](https://sequinstream.com/docs).
8
8
9
9
## 🌟 Features
10
10
11
-
This script comes with a one-month trial license.
12
-
After the trial period, the license reverts to [Free and open - Basic](https://www.elastic.co/subscriptions).
11
+
This script sets up a complete Sequin environment for local development and testing:
13
12
14
-
-**Trial**: Includes **All** features like the [Playground](https://www.elastic.co/docs/current/serverless/elasticsearch/playground), [ELSER](https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-elser.html), [semantic retrieval model](https://www.elastic.co/guide/en/machine-learning/8.15/ml-nlp-text-emb-vector-search-example.html), the [Elastic Inference API](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html) and much more.
15
-
-**Free and open - Basic**: Includes features like [vector search](https://www.elastic.co/what-is/vector-search), [ES|QL](https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html) and much more.
16
-
17
-
For a complete list of subscriptions and features, see our [subscriptions page](https://www.elastic.co/subscriptions).
13
+
-**Sequin**: The main Sequin application
14
+
-**PostgreSQL**: Database for Sequin's internal use and sample data
15
+
-**Redis**: For caching and message processing
16
+
-**Prometheus**: For metrics collection (optional)
17
+
-**Grafana**: For metrics visualization with pre-configured dashboards (optional)
18
18
19
19
## 💻 System requirements
20
20
21
-
- 5 GB of available disk space
22
21
-[Docker](https://www.docker.com/)
23
-
- Works on Linux and macOS
24
-
- On Microsoft Windows it works using [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install)
22
+
- Works on Linux, macOS, and Windows with [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install)
25
23
26
24
## 🏃♀️➡️ Getting started
27
25
@@ -30,97 +28,82 @@ For a complete list of subscriptions and features, see our [subscriptions page](
30
28
Run the `start-local` script using [curl](https://curl.se/):
31
29
32
30
```bash
33
-
curl -fsSL https://elastic.co/start-local | sh
31
+
curl -fsSL https://sequinstream.com/start-local | sh
34
32
```
35
33
36
-
This script creates an `elastic-start-local` folder containing:
34
+
This script creates a `sequin-start-local` folder containing:
37
35
38
-
-`docker-compose.yml`: Docker Compose configuration for Elasticsearch and Kibana
39
-
-`.env`: Environment settings, including the Elasticsearch password
40
-
-`start.sh` and `stop.sh`: Scripts to start and stop Elasticsearch and Kibana
41
-
-`uninstall.sh`: The script to uninstall Elasticsearch and Kibana
36
+
-`docker-compose.yml`: Docker Compose configuration for Sequin and its supporting services
37
+
-`.env`: Environment settings, including database passwords
38
+
-`start.sh` and `stop.sh`: Scripts to start and stop the Sequin services
39
+
-`uninstall.sh`: The script to uninstall Sequin and its services
42
40
43
41
### Select the version to install
44
42
45
-
By default, `start-local` uses the latest stable version of Elastic Stack. If you want, you can specify
46
-
a different version using the `-v` parameter, as follows:
43
+
By default, `start-local` uses the latest version of Sequin. If you want, you can specify a different version using the `-v` parameter, as follows:
47
44
48
45
```bash
49
-
curl -fsSL https://elastic.co/start-local | sh -s -- -v 8.16.0
46
+
curl -fsSL https://sequinstream.com/start-local | sh -s -- -v 0.6.107
50
47
```
51
48
52
-
The previous command installs Elasticsearch and Kibana `8.16.0`.
49
+
### Install without Prometheus and Grafana
53
50
54
-
Using the `-v` parameter, you can also install beta releases, this can be useful for testing an
55
-
upcoming release. For instance, you can install the `9.0.0-beta1` using the following
56
-
command:
51
+
If you want to install only the core services (Sequin, PostgreSQL, and Redis) without Prometheus and Grafana, you can use the `-minimal` option as follows:
57
52
58
53
```bash
59
-
curl -fsSL https://elastic.co/start-local | sh -s -- -v 9.0.0-beta1
54
+
curl -fsSL https://sequin.io/start-local | sh -s -- -minimal
60
55
```
61
56
62
-
The `9.0.0-beta1` version was released on February 18, 2025.
63
-
64
-
### Install only Elasticsearch
57
+
### Install without the playground database
65
58
66
-
If you want to install only Elasticsearch, without Kibana, you can use the `-esonly` option
67
-
as follows:
59
+
If you want to install without the sample playground database, you can use the `-noplayground` option:
68
60
69
61
```bash
70
-
curl -fsSL https://elastic.co/start-local | sh -s -- -esonly
62
+
curl -fsSL https://sequin.io/start-local | sh -s -- -noplayground
71
63
```
72
64
73
-
This command can be useful if you don't have enough resources and want to test only Elasticsearch.
74
-
75
65
### 🌐 Endpoints
76
66
77
67
After running the script:
78
68
79
-
- Elasticsearch will be running at <http://localhost:9200>
80
-
- Kibana will be running at <http://localhost:5601>
81
-
82
-
The script generates a random password for the `elastic` user, displayed at the end of the installation and stored in the `.env` file.
83
-
84
-
> [!CAUTION]
85
-
> HTTPS is disabled, and Basic authentication is used for Elasticsearch. This configuration is for local testing only. For security, Elasticsearch and Kibana are accessible only via `localhost`.
69
+
- Sequin will be running at <http://localhost:7376>
70
+
- PostgreSQL will be accessible at `localhost:7377`
71
+
- Redis will be accessible at `localhost:7378`
72
+
- Prometheus will be running at <http://localhost:9090> (if installed)
73
+
- Grafana will be running at <http://localhost:3000> (if installed)
86
74
87
-
### 🔑 API key
75
+
The default admin user credentials are:
88
76
89
-
An API key for Elasticsearch is generated and stored in the `.env` file as `ES_LOCAL_API_KEY`. Use this key to connect to Elasticsearch with the [Elastic SDK](https://www.elastic.co/guide/en/elasticsearch/client) or [REST API](https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html).
77
+
- Email: `admin@sequinstream.com`
78
+
- Password: `sequinpassword!`
90
79
91
-
Check the connection to Elasticsearch using `curl` in the `elastic-start-local` folder:
If the installation fails, an error log is created in `error-start-local.log`. This file contains logs from Elasticsearch and Kibana, captured using the [docker logs](https://docs.docker.com/reference/cli/docker/container/logs/) command.
115
+
If the installation fails, an error log is created in `error-start-local.log`. This file contains logs from the services, captured using the [docker logs](https://docs.docker.com/reference/cli/docker/container/logs/) command.
133
116
134
117
## ⚙️ Customizing settings
135
118
136
-
To change settings (e.g., Elasticsearch password), edit the `.env` file. Example contents:
119
+
To change settings, edit the `.env` file. Example contents:
137
120
138
121
```bash
139
-
ES_LOCAL_VERSION=8.15.2
140
-
ES_LOCAL_URL=http://localhost:9200
141
-
ES_LOCAL_CONTAINER_NAME=es-local-dev
142
-
ES_LOCAL_DOCKER_NETWORK=elastic-net
143
-
ES_LOCAL_PASSWORD=hOalVFrN
144
-
ES_LOCAL_PORT=9200
145
-
KIBANA_LOCAL_CONTAINER_NAME=kibana-local-dev
146
-
KIBANA_LOCAL_PORT=5601
147
-
KIBANA_LOCAL_PASSWORD=YJFbhLJL
148
-
ES_LOCAL_API_KEY=df34grtk...==
122
+
SEQUIN_VERSION=latest
123
+
SEQUIN_CONTAINER_NAME=sequin-local-dev
124
+
PG_CONTAINER_NAME=postgres-local-dev
125
+
PG_PASSWORD=postgres
126
+
REDIS_CONTAINER_NAME=redis-local-dev
149
127
```
150
128
151
129
> [!IMPORTANT]
152
130
> After changing the `.env` file, restart the services using `stop` and `start`:
153
131
>
154
132
> ```bash
155
-
>cdelastic-start-local
133
+
>cdsequin-start-local
156
134
> ./stop.sh
157
135
> ./start.sh
158
136
>```
@@ -175,7 +153,7 @@ We use [bashunit](https://bashunit.typeddevs.com/) to test the script. Tests are
175
153
lib/bashunit
176
154
```
177
155
178
-
The tests run `start-local.sh` and check if Elasticsearch and Kibana are working.
156
+
The tests run `start-local.sh` and check if Sequin and its services are working.
179
157
180
158
> [!NOTE]
181
159
> For URL pipeline testing, a local web server is used. This requires [PHP](https://www.php.net/).
0 commit comments