-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.15 KB
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
41
42
43
44
45
46
47
48
services:
postgres:
image: postgres:17
command:
- postgres
- -c
- wal_level=logical
- -c
- max_wal_senders=10
- -c
- max_replication_slots=10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: main
ports:
- "${LOCAL_PG_PORT:-44014}:5432"
volumes:
- o3_code_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
neon-proxy:
image: ghcr.io/timowilhelm/local-neon-http-proxy:main
environment:
PG_CONNECTION_STRING: postgres://postgres:postgres@postgres:5432/main
ports:
- "${LOCAL_NEON_PROXY_PORT:-44015}:4444"
depends_on:
postgres:
condition: service_healthy
electric:
image: electricsql/electric:1.4.13
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/main?sslmode=disable
ELECTRIC_SECRET: local_electric_dev_secret
ports:
- "${LOCAL_ELECTRIC_PORT:-44009}:3000"
depends_on:
postgres:
condition: service_healthy
volumes:
o3_code_db_data: