-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.63 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
# Local services for differential testing. The CI workflow uses GitHub
# Actions service containers with the same images and ports — keep the
# versions and config in sync.
#
# DuckDB is in-process via duckdbex; no service needed.
# SQLite is in-memory via ecto_sqlite3; no service needed.
#
# Bring up:
# docker compose up -d clickhouse
#
# Then run the differential tests:
# mix test --include clickhouse
#
# Tear down:
# docker compose down -v
services:
postgres:
image: postgres:16
container_name: spire-postgres
# Map to 5433 on the host so we don't clash with a developer's
# locally-installed Postgres on the default 5432.
ports:
- "5433:5432"
environment:
POSTGRES_DB: spire_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 2s
retries: 30
clickhouse:
image: clickhouse/clickhouse-server:24.10
container_name: spire-clickhouse
ports:
- "8123:8123" # HTTP — what `ch` / `ecto_ch` connect to
- "9000:9000" # Native protocol (unused by us, exposed for psql-like tooling)
environment:
CLICKHOUSE_DB: spire_test
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: ""
# Lets us CREATE/DROP tables freely in tests.
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping"]
interval: 2s
timeout: 2s
retries: 30