forked from cellajs/cella
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (38 loc) · 949 Bytes
/
compose.yaml
File metadata and controls
40 lines (38 loc) · 949 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
38
39
40
volumes:
pg_data:
services:
db:
container_name: db
image: postgres:latest
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
command:
- -c
- wal_level=logical
ports:
- 5432:5432
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
electric-sync-service:
container_name: electric-sync-service
image: electricsql/electric:0.12.0
depends_on:
- db
environment:
DATABASE_URL: postgresql://postgres:postgres@db/postgres
DATABASE_REQUIRE_SSL: false
LOGICAL_PUBLISHER_HOST: electric-sync-service
PG_PROXY_PASSWORD: proxy_password
AUTH_MODE: secure
AUTH_JWT_ALG: ES256
AUTH_JWT_KEY: ${ELECTRIC_PRIVATE_KEY_ES256}
AUTH_JWT_ISS: cella_backend
AUTH_JWT_AUD: cella_client
# LOG_LEVEL: debug
ports:
- 5133:5133
- 65432:65432
restart: always