-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose.yaml
67 lines (63 loc) · 1.55 KB
/
docker-compose.yaml
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
services:
langtrace-app:
container_name: langtrace
image: scale3labs/langtrace-client:latest
build:
context: .
dockerfile: Dockerfile
target: development
working_dir: /app
env_file:
- .env
ports:
- "3000:3000"
# Uncomment this for development
# command: npm run dev
# volumes:
# - .:/app
restart: on-failure:5
depends_on:
postgres-db:
condition: service_started
required: true
clickhouse-db:
condition: service_healthy
required: true
postgres-db:
container_name: langtrace-postgres
image: postgres:16.2-bookworm
env_file:
- .env
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
clickhouse-db:
container_name: langtrace-clickhouse
image: clickhouse/clickhouse-server:24.5.1.1763-alpine
environment:
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
- CLICKHOUSE_PASSWORD=${CLICK_HOUSE_PASSWORD}
- CLICKHOUSE_USER=${CLICK_HOUSE_USER}
- CLICKHOUSE_DB=${CLICK_HOUSE_DATABASE_NAME}
ports:
- "8123:8123"
- "9000:9000"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://langtrace-clickhouse:8123/ping || exit 1
retries: 3
start_period: 30s
start_interval: 5s
interval: 30s
volumes:
- clickhouse-data:/var/lib/clickhouse
langtrace-app-prod:
extends:
service: langtrace-app
build:
target: production
profiles:
- production
volumes:
postgres-data:
clickhouse-data: