Skip to content

Commit

Permalink
Update docker-compose.yaml (#1781)
Browse files Browse the repository at this point in the history
With current docker-compose without ssl mode enabled, electric wont
connect to local postgresql started by docker-compose. This PR disable
sslmode in the url

```
 [warning]  Database connection in lock_connection mode failed: ssl not available
```
  • Loading branch information
LeonAlvarez authored Oct 6, 2024
1 parent a28710f commit 1bf3077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .support/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
backend:
image: electricsql/electric:canary
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric?sslmode=disable
ports:
- 3000:3000
build:
Expand Down
2 changes: 1 addition & 1 deletion website/public/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
electric:
image: electricsql/electric
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric?sslmode=disable
ports:
- "3000:3000"
depends_on:
Expand Down

0 comments on commit 1bf3077

Please sign in to comment.