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
{{ message }}
Repository navigation
Commit a7f2161
Browse filesBrowse the repository at this point in the historyBrowse files
Postgres is on `127.0.0.1:5433`, SendLit on `http://localhost:3001`.
45
+
See [`apps/docs/content/docs/getting-started/overview.mdx`](apps/docs/content/docs/getting-started/overview.mdx).
46
+
47
+
Do not run this at the same time as the self-host stack — both bind those
48
+
ports.
49
+
50
+
## Self-hosting with Docker Compose
51
+
52
+
The root Compose file is the product: PostgreSQL (FrontLit + SendLit
53
+
databases), Redis, SendLit, and FrontLit's API, dashboard, and public sites.
54
+
55
+
```sh
56
+
cp .env.example .env
57
+
# Set the required secrets (commands are included as comments there).
58
+
docker compose up --build -d
59
+
docker compose logs frontlit-api
60
+
docker compose logs sendlit-api
61
+
```
62
+
63
+
Set `SUPER_ADMIN_EMAIL` and `SENDLIT_SUPER_ADMIN_EMAIL` before the first
64
+
start. Each process logs a one-time API key; save those. After SendLit prints
65
+
`organizationApiKey`, put it in `.env` as `SENDLIT_ORGANIZATION_API_KEY` and
66
+
run `docker compose up -d frontlit-api`.
67
+
68
+
Open the dashboard at `WEB_CLIENT` (`http://localhost:3000` by default), the
69
+
API at `API_PUBLIC_URL` (`http://localhost:4000`), public sites at
70
+
`SITES_BASE_URL` (`http://localhost:3002`), and SendLit at
71
+
`http://localhost:3001`.
72
+
11
73
## Tech stack
12
74
13
75
- ts-rest (for API)
@@ -24,11 +86,11 @@ API first. AI ready (MCP compatible).
24
86
25
87
`/settings/esp` shows _“It’s provisioned automatically in the background…”_ when FrontLit has no stored SendLit team key (`integrations.provider = 'sendlit'`). That is not the same as SendLit being down.
26
88
27
-
1. Confirm Compose SendLit is up: `docker compose ps` and `curl -s http://localhost:3001/health`.
28
-
2. Confirm `apps/api/.env` has `SENDLIT_API_URL` and `SENDLIT_ORGANIZATION_API_KEY`. The org key is printed **once** on first SendLit boot:
2. Confirm `apps/api/.env`(local) or the root `.env` (self-host) has `SENDLIT_API_URL` and `SENDLIT_ORGANIZATION_API_KEY`. The org key is printed **once** on first SendLit boot:
0 commit comments