Open History to see the last commit
1name: 'tanstack-db-e2e'
2
3services:
4 postgres:
5 image: postgres:16-alpine
6 environment:
7 POSTGRES_DB: e2e_test
8 POSTGRES_USER: postgres
9 POSTGRES_PASSWORD: password
10 ports:
11 - '54321:5432'
12 volumes:
13 - ./postgres.conf:/etc/postgresql/postgresql.conf:ro
14 tmpfs:
15 - /var/lib/postgresql/data # Speed optimization: in-memory storage
16 - /tmp
17 command:
18 - postgres
19 - -c
20 - config_file=/etc/postgresql/postgresql.conf
21 healthcheck:
22 test: ['CMD-SHELL', 'pg_isready -U postgres']
23 interval: 2s
24 timeout: 10s
25 retries: 5
26
27 electric:
28 image: electricsql/electric:canary
29 environment:
30 DATABASE_URL: postgresql://postgres:password@postgres:5432/e2e_test?sslmode=disable
31 ELECTRIC_INSECURE: true
32 ELECTRIC_FEATURE_FLAGS: 'allow_subqueries,tagged_subqueries'
33 ports:
34 - '3000:3000'
35 depends_on:
36 postgres:
37 condition: service_healthy
38 healthcheck:
39 test: ['CMD-SHELL', 'curl -f http://localhost:3000/v1/health || exit 1']
40 interval: 2s
41 timeout: 10s
42 retries: 5