Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
130 lines (128 loc) · 4.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
130 lines (128 loc) · 4.64 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
services:
inkeep-agents-manage-ui:
image: inkeep/agents-manage-ui:latest
environment:
- ENVIRONMENT
- LOG_LEVEL
- PUBLIC_INKEEP_AGENTS_MANAGE_API_URL=${PUBLIC_INKEEP_AGENTS_MANAGE_API_URL:-http://localhost:3002}
- INKEEP_AGENTS_MANAGE_API_URL=${INKEEP_AGENTS_MANAGE_API_URL:-http://host.docker.internal:3002}
- INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET
- PUBLIC_INKEEP_AGENTS_RUN_API_URL=${PUBLIC_INKEEP_AGENTS_RUN_API_URL:-http://localhost:3003}
- PUBLIC_INKEEP_AGENTS_RUN_API_BYPASS_SECRET
- PUBLIC_NANGO_CONNECT_BASE_URL=${PUBLIC_NANGO_CONNECT_BASE_URL:-http://localhost:3051}
- PUBLIC_NANGO_SERVER_URL=${PUBLIC_NANGO_SERVER_URL:-http://localhost:3051}
- NANGO_SERVER_URL=${NANGO_SERVER_URL:-http://host.docker.internal:3050}
- NANGO_SECRET_KEY
- PUBLIC_SIGNOZ_URL=${PUBLIC_SIGNOZ_URL:-http://localhost:3080}
- SIGNOZ_URL=${SIGNOZ_URL:-http://host.docker.internal:3080}
- SIGNOZ_API_KEY
expose:
- "3000"
depends_on:
inkeep-agents-migrate:
condition: service_completed_successfully
extra_hosts:
- "host.docker.internal:host-gateway"
inkeep-agents-manage-api:
image: inkeep/agents-manage-api:latest
environment:
- ENVIRONMENT
- LOG_LEVEL
- DATABASE_URL=postgresql://appuser:password@inkeep-agents-db:5432/inkeep_agents
- INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET
- NANGO_SERVER_URL=${NANGO_SERVER_URL:-http://host.docker.internal:3050}
- NANGO_SECRET_KEY
ports:
- "3002:3002"
depends_on:
inkeep-agents-db:
condition: service_healthy
inkeep-agents-migrate:
condition: service_completed_successfully
extra_hosts:
- "host.docker.internal:host-gateway"
inkeep-agents-run-api:
image: inkeep/agents-run-api:latest
environment:
- ENVIRONMENT
- LOG_LEVEL
- DATABASE_URL=postgresql://appuser:password@inkeep-agents-db:5432/inkeep_agents
- INKEEP_AGENTS_RUN_API_BYPASS_SECRET
- INKEEP_AGENTS_JWT_SIGNING_SECRET
- ANTHROPIC_API_KEY
- OPENAI_API_KEY
- GOOGLE_GENERATIVE_AI_API_KEY
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:-http://host.docker.internal:14318/v1/traces}
- OTEL_EXPORTER_OTLP_TRACES_HEADERS
- NANGO_SERVER_URL=${NANGO_SERVER_URL:-http://host.docker.internal:3050}
- NANGO_SECRET_KEY
ports:
- "3003:3003"
depends_on:
inkeep-agents-db:
condition: service_healthy
inkeep-agents-migrate:
condition: service_completed_successfully
extra_hosts:
- "host.docker.internal:host-gateway"
inkeep-agents-db:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_DB: inkeep_agents
POSTGRES_USER: appuser
POSTGRES_PASSWORD: password
volumes:
- inkeep-agents-db-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 2s
timeout: 3s
retries: 30
inkeep-agents-migrate:
image: inkeep/agents-migrate:latest
environment:
- ENVIRONMENT
- LOG_LEVEL
- DATABASE_URL=postgresql://appuser:password@inkeep-agents-db:5432/inkeep_agents
depends_on:
inkeep-agents-db:
condition: service_healthy
restart: "no"
inkeep-agents-manage-ui-protected:
image: nginx:alpine
environment:
- INKEEP_AGENTS_MANAGE_UI_USERNAME=${INKEEP_AGENTS_MANAGE_UI_USERNAME:-admin@example.com}
- INKEEP_AGENTS_MANAGE_UI_PASSWORD=${INKEEP_AGENTS_MANAGE_UI_PASSWORD:-adminADMIN!@12}
ports:
- "3000:80"
depends_on:
- inkeep-agents-manage-ui
command: >
/bin/sh -c "
apk add --no-cache apache2-utils &&
htpasswd -bc /etc/nginx/.htpasswd $${INKEEP_AGENTS_MANAGE_UI_USERNAME} $${INKEEP_AGENTS_MANAGE_UI_PASSWORD} &&
echo '
events {}
http {
server {
listen 80;
server_name localhost;
location / {
auth_basic \"Restricted\";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://inkeep-agents-manage-ui:3000;
proxy_set_header Host $$http_host;
proxy_set_header X-Forwarded-Host $$http_host;
proxy_set_header X-Forwarded-For $$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $$scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $$http_upgrade;
proxy_set_header Connection \"upgrade\";
}
}
}' > /etc/nginx/nginx.conf &&
nginx -g 'daemon off;'
"
volumes:
inkeep-agents-db-data: