-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.04 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
postgres:
image: postgres:16-alpine
command:
- -c
- listen_addresses=*
- -c
- wal_level=logical
ports:
- "5432:5432"
tmpfs:
- /var/lib/postgresql/data
- /tmp
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
pgbouncer:
image: brainsam/pgbouncer:latest
depends_on:
- postgres
ports:
- 6432:6432
environment:
DB_HOST: postgres
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_DB}
DB_port: 5432
links:
- postgres:postgres
electric:
image: electricsql/electric:latest
depends_on:
- postgres
ports:
- "8003:3000"
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable
volumes:
redis_data:
postgres_data: