forked from swirlai/swirl-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
28 lines (28 loc) · 1.02 KB
/
docker-compose.yaml
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
services:
redis:
image: redis:latest
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
app:
image: swirlai/swirl-search:latest
ports:
- "8000:8000"
depends_on:
redis:
condition: service_healthy
command: >
sh -c 'rm -fr ./.swirl && python swirl.py setup && mkdir -p static/api/config &&
/usr/bin/jq ".default" ./config-swirl-demo.db.json | sed -e "s/<msal-app-id>/$MSAL_APP_ID/" \
-e "s/<msal-tenant-id>/$MSAL_TENANT_ID/" \
-e "s/<msal-port>/$MSAL_CB_PORT/" \
-e "s/<msal-host>/$MSAL_HOST/" \
-e "s/\"microsoftGalaxyOauth\": false,/\"microsoftGalaxyOauth\": true,/" > static/api/config/default &&
python swirl.py start celery-worker celery-beats &&
daphne -b 0.0.0.0 -p 8000 swirl_server.asgi:application'
environment: # Environment variables section
- OPENAI_API_KEY=${OPENAI_API_KEY}