forked from TanStack/db
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.09 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
version: "3.8"
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: todo_app
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "54322:5432"
volumes:
- ./postgres.conf:/etc/postgresql/postgresql.conf:ro
tmpfs:
- /var/lib/postgresql/data
- /tmp
command:
- postgres
- -c
- config_file=/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
electric:
image: electricsql/electric:canary
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/todo_app?sslmode=disable
ELECTRIC_INSECURE: true
ports:
- 3003:3000
depends_on:
postgres:
condition: service_healthy
trailbase:
image: trailbase/trailbase:latest
ports:
- "${PORT:-4000}:4000"
restart: unless-stopped
volumes:
- ./traildepot:/app/traildepot
command: "/app/trail --data-dir /app/traildepot run --address 0.0.0.0:4000 --dev"
volumes:
postgres_data: