|
1 | 1 | # Copy this file: cp .env.local.template .env.local |
2 | 2 | # |
3 | | -# This is the single source of truth for all environment variables. |
4 | | -# Docker Compose reads this file directly (via env_file), so you only |
5 | | -# ever need to edit one file. Note: Docker Compose does not expand |
6 | | -# ${VAR} references inside env_file, so all values are written out in full. |
| 3 | +# App-level environment variables for Next.js. |
| 4 | +# Docker Compose variables live in powersync/docker/.env. |
7 | 5 |
|
8 | 6 | # ── PowerSync service ──────────────────────────────────────────────────────── |
9 | 7 | POWERSYNC_URL=http://localhost:8080 |
10 | 8 |
|
11 | | -# ── Application database (Postgres) ────────────────────────────────────────── |
12 | | -PS_DATABASE_USER=postgres |
13 | | -PS_DATABASE_PASSWORD=changeme |
14 | | -PS_DATABASE_NAME=postgres |
15 | | -PS_DATABASE_PORT=5432 |
16 | | - |
17 | 9 | # Used by Next.js API routes (localhost, since it runs outside Docker) |
18 | 10 | DATABASE_URL=postgresql://postgres:changeme@localhost:5432/postgres |
19 | 11 |
|
20 | | -# ── PowerSync storage database (internal) ──────────────────────────────────── |
21 | | -PS_STORAGE_USER=postgres |
22 | | -PS_STORAGE_PASSWORD=changeme |
23 | | -PS_STORAGE_DATABASE=powersync_storage |
24 | | -PS_STORAGE_PORT=5433 |
25 | | - |
26 | | -# ── Docker-internal URIs (pg-db / pg-storage are Docker service names) ──────── |
27 | | -PS_DATA_SOURCE_URI=postgresql://postgres:changeme@pg-db:5432/postgres |
28 | | -PS_STORAGE_SOURCE_URI=postgresql://postgres:changeme@pg-storage:5433/powersync_storage |
29 | | - |
30 | 12 | # ── Optional ────────────────────────────────────────────────────────────────── |
31 | 13 | # JWT_ISSUER=powersync-nextjs-demo |
32 | 14 | # POWERSYNC_PRIVATE_KEY=<base64-encoded JWK> |
|
0 commit comments