-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 2.27 KB
/
docker-compose.yml
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
81
services:
webui:
build: .
platform: linux/amd64
ports:
- 8000:8000
environment:
SERVICE: webui
PG_DSN: postgres://postgres:postgres@postgres/logfire_demo
REDIS_DSN: redis://redis:6379/0
TILING_SERVER: "http://tiling:8000"
# forward the openapi key from the host environment
OPENAI_API_KEY: $OPENAI_API_KEY
LOGFIRE_TOKEN: $LOGFIRE_TOKEN
GITHUB_WEBHOOK_SECRET: $GITHUB_WEBHOOK_SECRET
SLACK_SIGNING_SECRET: $SLACK_SIGNING_SECRET
SLACK_CHANNEL_IDS: ${SLACK_CHANNEL_IDS:-[]}
healthcheck:
test: python -c "import urllib.request as r; assert r.urlopen('http://localhost:8000/health').status == 200"
depends_on:
- postgres
- redis
tiling:
build: .
platform: linux/amd64
environment:
SERVICE: tiling
LOGFIRE_TOKEN: $LOGFIRE_TOKEN
healthcheck:
test: python -c "import urllib.request as r; assert r.urlopen('http://localhost:8000/health').status == 200"
worker:
build: .
platform: linux/amd64
environment:
SERVICE: worker
PG_DSN: postgres://postgres:postgres@postgres/logfire_demo
REDIS_DSN: redis://redis:6379/0
LOGFIRE_TOKEN: $LOGFIRE_TOKEN
GITHUB_APP_ID: $GITHUB_APP_ID
GITHUB_APP_INSTALLATION_ID: $GITHUB_APP_INSTALLATION_ID
GITHUB_APP_PRIVATE_KEY: $GITHUB_APP_PRIVATE_KEY
VECTOR_DISTANCE_THRESHOLD: 0.4
AI_SIMILARITY_THRESHOLD: 85
healthcheck:
test: arq src.worker.WorkerSettings --check
postgres:
image: ankane/pgvector:latest
container_name: logfire-demo-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: logfire_demo
ports:
# to connect: `pgcli postgres://postgres:postgres@localhost:54320/logfire_demo`
- 54320:5432
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
redis:
image: redis:latest
container_name: logfire-demo-redis
volumes:
- redis-data:/data
ports:
- "63790:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
postgres-data:
redis-data:
networks:
default:
name: logfire-demo-dev