-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
96 lines (90 loc) · 2.8 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.8'
services:
db:
image: postgres:16.1
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-intentkit}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}" ]
interval: 5s
timeout: 5s
retries: 5
api:
image: crestal/intentkit:latest
depends_on:
db:
condition: service_healthy
environment:
- ENV=${ENV:-local}
- RELEASE=${RELEASE:-local}
- DB_USERNAME=${POSTGRES_USER:-postgres}
- DB_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-intentkit}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CDP_API_KEY_NAME=${CDP_API_KEY_NAME}
- CDP_API_KEY_PRIVATE_KEY=${CDP_API_KEY_PRIVATE_KEY}
ports:
- "8000:8000"
command: poetry run uvicorn app.api:app --host 0.0.0.0 --port 8000
autonomous:
image: crestal/intentkit:latest
depends_on:
db:
condition: service_healthy
environment:
- ENV=${ENV:-local}
- RELEASE=${RELEASE:-local}
- DB_USERNAME=${POSTGRES_USER:-postgres}
- DB_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-intentkit}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CDP_API_KEY_NAME=${CDP_API_KEY_NAME}
- CDP_API_KEY_PRIVATE_KEY=${CDP_API_KEY_PRIVATE_KEY}
- INTERNAL_BASE_URL=http://api:8000
command: poetry run python -m app.autonomous
twitter:
image: crestal/intentkit:latest
depends_on:
db:
condition: service_healthy
environment:
- ENV=${ENV:-local}
- RELEASE=${RELEASE:-local}
- DB_USERNAME=${POSTGRES_USER:-postgres}
- DB_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-intentkit}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CDP_API_KEY_NAME=${CDP_API_KEY_NAME}
- CDP_API_KEY_PRIVATE_KEY=${CDP_API_KEY_PRIVATE_KEY}
- INTERNAL_BASE_URL=http://api:8000
command: poetry run python -m app.twitter
telegram:
image: crestal/intentkit:latest
depends_on:
db:
condition: service_healthy
environment:
- ENV=${ENV:-local}
- RELEASE=${RELEASE:-local}
- DB_USERNAME=${POSTGRES_USER:-postgres}
- DB_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB:-intentkit}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CDP_API_KEY_NAME=${CDP_API_KEY_NAME}
- CDP_API_KEY_PRIVATE_KEY=${CDP_API_KEY_PRIVATE_KEY}
- INTERNAL_BASE_URL=http://api:8000
command: poetry run python -m app.telegram
volumes:
postgres_data: