-
-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 1.27 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
services:
app:
image: celaraze/sebastian:latest
container_name: sebastian-app
restart: always
environment:
# Set to en for English model, default for Chinese model.
- LANGUAGE=cn
- ES_URL=http://sebastian-elasticsearch:9200
# [Required] Replace with your own API key below.
# DASHSCOPE_API_KEY or OPENAI_API_KEY only one is required.
# If you want to use zh_CN model(based on Qwen-max), you need to set DASHSCOPE_API_KEY.
# Visit https://help.aliyun.com/zh/model-studio/developer-reference/get-api-key
- DASHSCOPE_API_KEY=
# If you want to use en_US model(based on gpt-4o), you need to set OPENAI_API_KEY.
- OPENAI_API_KEY=
# [Required] HTTP authorization bearer token for requesting WebAPI.
- TOKEN=
ports:
- "8000:8000/tcp"
depends_on:
- elasticsearch
elasticsearch:
image: elasticsearch:8.17.2
container_name: sebastian-elasticsearch
restart: always
environment:
- ES_JAVA_OPTS=-Xlog:disable -Xlog:gc=debug:stderr -Xms512m -Xmx512m
- ELASTIC_CONTAINER=true
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- sebastian_elasticsearch_data:/usr/share/elasticsearch/data
volumes:
sebastian_elasticsearch_data: