69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
services:
|
|
clickhouse:
|
|
image: clickhouse:lts
|
|
environment:
|
|
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
|
|
CLICKHOUSE_PASSWORD: chpassword
|
|
CLICKHOUSE_USER: chuser
|
|
ports:
|
|
- "8123:8123" # HTTP port
|
|
- "9000:9000" # Native port
|
|
volumes:
|
|
- clickhouse-data:/var/lib/clickhouse
|
|
ulimits:
|
|
nofile:
|
|
soft: 262144
|
|
hard: 262144
|
|
healthcheck:
|
|
test: wget --spider --tries 1 http://chuser:chpassword@clickhouse:8123/ping
|
|
start_period: 30s
|
|
start_interval: 1s
|
|
timeout: 1s
|
|
|
|
gateway:
|
|
image: tensorzero/gateway
|
|
volumes:
|
|
- ./config:/app/config:ro
|
|
- ${GCP_VERTEX_CREDENTIALS_PATH:-/dev/null}:/app/gcp-credentials.json:ro
|
|
command: --config-file /app/config/tensorzero.toml
|
|
environment:
|
|
GCP_VERTEX_CREDENTIALS_PATH: ${GCP_VERTEX_CREDENTIALS_PATH:+/app/gcp-credentials.json}
|
|
TENSORZERO_CLICKHOUSE_URL: http://chuser:chpassword@clickhouse:8123/tensorzero
|
|
env_file:
|
|
- ${ENV_FILE:-.env}
|
|
ports:
|
|
- "3000:3000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"wget",
|
|
"--no-verbose",
|
|
"--tries=1",
|
|
"--spider",
|
|
"http://localhost:3000/health",
|
|
]
|
|
start_period: 1s
|
|
start_interval: 1s
|
|
timeout: 1s
|
|
depends_on:
|
|
clickhouse:
|
|
condition: service_healthy
|
|
|
|
ui:
|
|
image: tensorzero/ui
|
|
environment:
|
|
TENSORZERO_GATEWAY_URL: http://gateway:3000
|
|
env_file:
|
|
- ${ENV_FILE:-.env}
|
|
ports:
|
|
- "4000:4000"
|
|
depends_on:
|
|
gateway:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
clickhouse-data:
|