-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "electric_quickstart"
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: electric
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 54321:5432
tmpfs:
- /var/lib/postgresql/data
- /tmp
command:
- -c
- listen_addresses=*
- -c
- wal_level=logical
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d electric"]
interval: 5s
timeout: 5s
retries: 5
electric:
image: electricsql/electric:1.0.12
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/electric?sslmode=disable
# Not suitable for production. Only use insecure mode in development or if you've otherwise secured the Electric API.
# See https://electric-sql.com/docs/guides/security
ELECTRIC_INSECURE: true
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy