Skip to content

Commit c505380

Browse files
authored
fix: local dev setup for running backend outside Docker (#62)
1 parent 792b943 commit c505380

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# POSTGRES_USER=atlas
33
# POSTGRES_PASSWORD=atlas
44

5+
# PostgreSQL connection string.
6+
# When running the full Docker stack: set automatically by docker-compose (do not set here).
7+
# When running the backend locally against a local or Docker Postgres:
8+
# DATABASE_URL=postgres://atlas:atlas@localhost:5432/atlas
9+
510
# Required: Your L2 RPC endpoint
611
RPC_URL=http://localhost:8545
712

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ just frontend-install
3131
Start the backend:
3232

3333
```bash
34-
just backend-server
34+
just backend-run
3535
```
3636

3737
Start frontend:
@@ -59,7 +59,7 @@ Copy `.env.example` to `.env` and set `RPC_URL`. Common options:
5959
| Variable | Description | Default |
6060
|----------|-------------|---------|
6161
| `RPC_URL` | Ethereum JSON-RPC endpoint | Required |
62-
| `DATABASE_URL` | PostgreSQL connection string | Set in docker-compose |
62+
| `DATABASE_URL` | PostgreSQL connection string | `postgres://atlas:atlas@localhost:5432/atlas` (local dev) |
6363
| `START_BLOCK` | Block to start indexing from | `0` |
6464
| `BATCH_SIZE` | Blocks per indexing batch | `100` |
6565
| `RPC_REQUESTS_PER_SECOND` | RPC rate limit | `100` |

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
services:
22
postgres:
33
image: postgres:16-alpine
4+
ports:
5+
- "5432:5432"
46
environment:
57
POSTGRES_DB: atlas
68
POSTGRES_USER: ${POSTGRES_USER:-atlas}

0 commit comments

Comments
 (0)