forked from hugodutka/electric-sql-index-bugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 971 Bytes
/
docker-compose.yml
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
38
39
40
version: "3"
services:
db:
image: "postgres:15.4-alpine"
command: postgres -c 'max_connections=10000' -c 'max_logical_replication_workers=200' -c 'wal_level=logical' #-c 'log_min_messages=debug'
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: bug
PGDATA: /pgtmpfs
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s
timeout: 10s
retries: 30
tmpfs:
- /pgtmpfs
electric:
image: electricsql/electric:0.6.3
environment:
DATABASE_URL: "postgresql://postgres:postgres@db:5432/bug"
LOGICAL_PUBLISHER_HOST: "electric"
AUTH_MODE: "secure"
AUTH_JWT_ALG: "HS256"
AUTH_JWT_KEY: "11111111111111111111111111111111"
LOG_LEVEL: "debug"
ports:
- "5050:5050"
- "5133:5133"
depends_on:
- db
volumes:
db-data:
electric-data: