-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
152 lines (143 loc) · 3.82 KB
/
docker-compose.yml
File metadata and controls
152 lines (143 loc) · 3.82 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
front:
image: ghcr.io/crawlchat/crawlchat-front:latest
networks:
- crawlchat-net
depends_on:
- database
ports:
- "3001:3000"
environment:
SELF_HOSTED: "true"
DATABASE_URL: "mongodb://database:27017/crawlchat?replicaSet=rs0"
JWT_SECRET: "a-long-secret"
VITE_APP_URL: "http://localhost:3001"
VITE_SERVER_WS_URL: "ws://localhost:3002"
VITE_SERVER_URL: "http://localhost:3002"
VITE_SOURCE_SYNC_URL: "http://localhost:3003"
DEFAULT_SIGNUP_PLAN_ID: "accelerate-yearly"
# optional
RESEND_FROM_EMAIL: ""
RESEND_KEY: ""
GOOGLE_CLIENT_ID: ""
GOOGLE_CLIENT_SECRET: ""
GOOGLE_REDIRECT_URI: ""
ADMIN_EMAILS: ""
server:
image: ghcr.io/crawlchat/crawlchat-server:latest
networks:
- crawlchat-net
depends_on:
- database
ports:
- "3002:3000"
environment:
SELF_HOSTED: "true"
DATABASE_URL: "mongodb://database:27017/crawlchat?replicaSet=rs0"
JWT_SECRET: "a-long-secret"
SOURCE_SYNC_URL: "http://source_sync:3000"
PINECONE_API_KEY: "<PINECONE_API_KEY>"
OPENROUTER_API_KEY: "<OPENROUTER_API_KEY>"
# optional
ADMIN_EMAILS: ""
source_sync:
image: ghcr.io/crawlchat/crawlchat-source-sync:latest
depends_on:
- redis
- database
ports:
- "3003:3000"
networks:
- crawlchat-net
environment:
SELF_HOSTED: "true"
DATABASE_URL: "mongodb://database:27017/crawlchat?replicaSet=rs0"
JWT_SECRET: "a-long-secret"
PINECONE_API_KEY: "<PINECONE_API_KEY>"
REDIS_URL: "redis://redis:6379"
GROUP_QUEUE_NAME: "crawlchat_source_sync_groups"
ITEM_QUEUE_NAME: "crawlchat_source_sync_items"
# optional
SCRAPECREATORS_API_KEY: ""
GITHUB_TOKEN: ""
discord_bot:
image: ghcr.io/crawlchat/crawlchat-discord:latest
depends_on:
- database
networks:
- crawlchat-net
environment:
SELF_HOSTED: "true"
APP_ID: ""
DISCORD_TOKEN: ""
PUBLIC_KEY: ""
BOT_USER_ID: ""
ALL_BOT_USER_IDS: ""
SERVER_HOST: ""
JWT_SECRET: "a-long-secret"
slack_app:
image: ghcr.io/crawlchat/crawlchat-slack:latest
depends_on:
- database
ports:
- "3004:3000"
networks:
- crawlchat-net
environment:
SELF_HOSTED: "true"
DATABASE_URL: "mongodb://database:27017/crawlchat?replicaSet=rs0"
SERVER_HOST: "http://localhost:3002"
JWT_SECRET: "a-long-secret"
SLACK_SIGNING_SECRET: ""
SLACK_CLIENT_ID: ""
SLACK_CLIENT_SECRET: ""
SLACK_STATE_SECRET: ""
HOST: ""
database:
image: mongo:7
restart: unless-stopped
command: ["mongod", "--replSet", "rs0", "--bind_ip_all", "--noauth"]
volumes:
- mongo_data:/data/db
networks:
- crawlchat-net
healthcheck:
test: mongosh --eval "db.adminCommand('ping')" --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
mongo-init:
image: mongo:7
depends_on:
database:
condition: service_healthy
restart: "no"
entrypoint: ["sh", "-c", "
until mongosh --host database:27017 --eval 'db.runCommand({ ping: 1 })'; do
echo 'Waiting for Mongo...'; sleep 2;
done;
mongosh --host database:27017 --eval 'rs.initiate({_id:\"rs0\",members:[{_id:0,host:\"database:27017\"}]})'
"]
networks:
- crawlchat-net
redis:
image: redis:7
container_name: crawlchat-redis
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 2s
retries: 12
volumes:
- redis_data:/data
networks:
- crawlchat-net
networks:
crawlchat-net:
driver: bridge
volumes:
mongo_data:
redis_data: