-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.45 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
# Stack completa pra dev local / referência de self-host full-stack.
# `docker compose up --build` sobe quark + os 3 backends plugáveis.
services:
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: quark
POSTGRES_USER: quark
POSTGRES_DB: quark
# Cria a role/banco quark_test (nao-superusuario) usados pelos testes
# gated. Ver docker/initdb/10-test-role.sql.
volumes:
- ./docker/initdb:/docker-entrypoint-initdb.d:ro
ports: ["5432:5432"]
healthcheck:
test: ["CMD", "pg_isready", "-U", "quark"]
interval: 5s
timeout: 3s
retries: 5
valkey:
image: valkey/valkey:8
ports: ["6379:6379"]
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
clickhouse:
image: clickhouse/clickhouse-server:24
ports: ["8123:8123"]
ulimits:
nofile: { soft: 262144, hard: 262144 }
quark:
build: .
depends_on:
postgres: { condition: service_healthy }
valkey: { condition: service_healthy }
ports: ["8080:8080"]
environment:
QUARK_KEY: "12345678901234567" # dev only — troque em produção
QUARK_ADMIN_TOKEN: "dev-admin-token"
QUARK_DATABASE_URL: "postgres://quark:quark@postgres:5432/quark"
QUARK_VALKEY_URL: "redis://valkey:6379"
QUARK_CLICKHOUSE_URL: "http://clickhouse:8123"
QUARK_CORS_ORIGINS: "http://localhost:5173" # origem do painel em dev