-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
80 lines (76 loc) · 2.76 KB
/
Copy pathdocker-compose.development.yml
File metadata and controls
80 lines (76 loc) · 2.76 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# Dev database for `wrangler dev` (the Hyperdrive localConnectionString in
# each worker's wrangler.jsonc points here). Port 5499 dodges any host
# Postgres. vitest does NOT need this — tests run embedded PGlite.
postgres:
image: postgres:17-alpine
# wal_level=logical is a runtime GUC (not initdb-time), so flipping it on an
# existing volume needs no reset. Electric tails the WAL for shape sync.
command: ["postgres", "-c", "wal_level=logical"]
ports:
- "5499:5432"
environment:
POSTGRES_USER: maple
POSTGRES_PASSWORD: maple
POSTGRES_DB: maple
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U maple -d maple"]
interval: 5s
timeout: 3s
retries: 5
# ElectricSQL sync service for `wrangler dev`. The apps/api shape proxy
# (/api/sync/shape) points at http://localhost:3473 and is the only thing that
# talks to it. ELECTRIC_MANUAL_TABLE_PUBLISHING mirrors prod: the publication
# is owned by a Drizzle migration, not by Electric.
electric:
image: electricsql/electric:latest
ports:
- "3473:3000"
environment:
DATABASE_URL: postgresql://maple:maple@postgres:5432/maple?sslmode=disable
ELECTRIC_INSECURE: "true"
ELECTRIC_MANUAL_TABLE_PUBLISHING: "true"
depends_on:
postgres:
condition: service_healthy
clickhouse:
image: clickhouse/clickhouse-server:24.8
ports:
- "8123:8123" # HTTP (queries, migrations, mapleexporter)
- "9000:9000" # native protocol (optional; handy for clickhouse-client)
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: maple
CLICKHOUSE_PASSWORD: maple
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
volumes:
- clickhouse-data:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
otel-collector:
build:
context: .
dockerfile: otel/otel-collector.Dockerfile
ports:
- "4317:4317"
- "4318:4318"
- "13133:13133"
env_file: .env.local
environment:
MAPLE_CLICKHOUSE_PASSWORD: maple
volumes:
- ./otel/collector-config.clickhouse.yaml:/etc/otel/config.yaml
user: "0:0"
volumes:
postgres-data:
clickhouse-data: