-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
158 lines (152 loc) · 4.72 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
volumes:
pentagi-data:
driver: local
pentagi-ssl:
driver: local
scraper-ssl:
driver: local
pentagi-postgres-data:
driver: local
networks:
pentagi-network:
driver: bridge
name: pentagi-network
observability-network:
driver: bridge
name: observability-network
langfuse-network:
driver: bridge
name: langfuse-network
services:
pentagi:
image: vxcontrol/pentagi:latest
restart: unless-stopped
container_name: pentagi
hostname: pentagi
expose:
- 8443/tcp
ports:
- 127.0.0.1:8443:8443
depends_on:
- pgvector
environment:
- DOCKER_GID=998
- CORS_ORIGINS=${CORS_ORIGINS:-}
- COOKIE_SIGNING_SALT=${COOKIE_SIGNING_SALT:-}
- OPEN_AI_KEY=${OPEN_AI_KEY:-}
- OPEN_AI_SERVER_URL=${OPEN_AI_SERVER_URL:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- ANTHROPIC_SERVER_URL=${ANTHROPIC_SERVER_URL:-}
- LLM_SERVER_URL=${LLM_SERVER_URL:-}
- LLM_SERVER_KEY=${LLM_SERVER_KEY:-}
- LLM_SERVER_MODEL=${LLM_SERVER_MODEL:-}
- PROXY_URL=${PROXY_URL:-}
- SCRAPER_PUBLIC_URL=${SCRAPER_PUBLIC_URL:-}
- SCRAPER_PRIVATE_URL=${SCRAPER_PRIVATE_URL:-}
- PUBLIC_URL=${PUBLIC_URL:-}
- STATIC_DIR=${STATIC_DIR:-}
- STATIC_URL=${STATIC_URL:-}
- SERVER_PORT=${SERVER_PORT:-8443}
- SERVER_HOST=${SERVER_HOST:-0.0.0.0}
- SERVER_SSL_CRT=${SERVER_SSL_CRT:-}
- SERVER_SSL_KEY=${SERVER_SSL_KEY:-}
- SERVER_USE_SSL=${SERVER_USE_SSL:-true}
- OAUTH_GOOGLE_CLIENT_ID=${OAUTH_GOOGLE_CLIENT_ID:-}
- OAUTH_GOOGLE_CLIENT_SECRET=${OAUTH_GOOGLE_CLIENT_SECRET:-}
- OAUTH_GITHUB_CLIENT_ID=${OAUTH_GITHUB_CLIENT_ID:-}
- OAUTH_GITHUB_CLIENT_SECRET=${OAUTH_GITHUB_CLIENT_SECRET:-}
- DATABASE_URL=postgres://${PENTAGI_POSTGRES_USER:-postgres}:${PENTAGI_POSTGRES_PASSWORD:-postgres}@pgvector:5432/${PENTAGI_POSTGRES_DB:-pentagidb}?sslmode=disable
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
- GOOGLE_CX_KEY=${GOOGLE_CX_KEY:-}
- TRAVERSAAL_API_KEY=${TRAVERSAAL_API_KEY:-}
- TAVILY_API_KEY=${TAVILY_API_KEY:-}
- LANGFUSE_BASE_URL=${LANGFUSE_BASE_URL:-}
- LANGFUSE_PROJECT_ID=${LANGFUSE_PROJECT_ID:-}
- LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY:-}
- LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY:-}
- OTEL_HOST=${OTEL_HOST:-}
- DOCKER_HOST=${DOCKER_HOST:-unix:///var/run/docker.sock}
- DOCKER_TLS_VERIFY=${DOCKER_TLS_VERIFY:-}
- DOCKER_CERT_PATH=${DOCKER_CERT_PATH:-}
- DOCKER_INSIDE=${DOCKER_INSIDE:-false}
- DOCKER_SOCKET=${DOCKER_SOCKET:-}
- DOCKER_NETWORK=${DOCKER_NETWORK:-}
- DOCKER_PUBLIC_IP=${DOCKER_PUBLIC_IP:-}
- DOCKER_WORK_DIR=${DOCKER_WORK_DIR:-}
logging:
options:
max-size: 50m
max-file: '7'
volumes:
- pentagi-data:/opt/pentagi/data
- pentagi-ssl:/opt/pentagi/ssl
- /var/run/docker.sock:/var/run/docker.sock
user: root:root # while using docker.sock
networks:
- pentagi-network
- observability-network
- langfuse-network
pgvector:
image: vxcontrol/pgvector:latest
restart: unless-stopped
container_name: pgvector
hostname: pgvector
expose:
- 5432/tcp
ports:
- 127.0.0.1:5432:5432
environment:
POSTGRES_USER: ${PENTAGI_POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${PENTAGI_POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${PENTAGI_POSTGRES_DB:-pentagidb}
logging:
options:
max-size: 50m
max-file: '7'
volumes:
- pentagi-postgres-data:/var/lib/postgresql/data
networks:
- pentagi-network
pgexporter:
image: quay.io/prometheuscommunity/postgres-exporter:v0.16.0
restart: unless-stopped
depends_on:
- pgvector
container_name: pgexporter
hostname: pgexporter
expose:
- 9187/tcp
ports:
- 127.0.0.1:9187:9187
environment:
- DATA_SOURCE_NAME=pgvector:5432/${PENTAGI_POSTGRES_DB:-pentagidb}?sslmode=disable
- DATA_SOURCE_USER=${PENTAGI_POSTGRES_USER:-postgres}
- DATA_SOURCE_PASS=${PENTAGI_POSTGRES_PASSWORD:-postgres}
logging:
options:
max-size: 50m
max-file: '7'
networks:
- pentagi-network
scraper:
image: vxcontrol/scraper:latest
restart: always
container_name: scraper
hostname: scraper
expose:
- 443/tcp
ports:
- 127.0.0.1:9443:443
environment:
- MAX_CONCURRENT_SESSIONS=${LOCAL_SCRAPER_MAX_CONCURRENT_SESSIONS:-10}
- USERNAME=${LOCAL_SCRAPER_USERNAME:-someuser}
- PASSWORD=${LOCAL_SCRAPER_PASSWORD:-somepass}
logging:
options:
max-size: 50m
max-file: '7'
volumes:
- scraper-ssl:/usr/src/app/ssl
networks:
- pentagi-network
shm_size: 2g