optimize docker compose yml
This commit is contained in:
@@ -14,8 +14,8 @@ services:
|
||||
entrypoint: >
|
||||
sh -c "
|
||||
if [ ! -f /app/config/config.yaml ]; then
|
||||
echo 'Config file not found in volume, initializing from base config...'
|
||||
cp /app/config.base.yaml /app/config/config.yaml;
|
||||
echo 'Config file not found in volume, initializing from init config...'
|
||||
cp /app/config.init.yaml /app/config/config.yaml;
|
||||
else
|
||||
echo 'Existing config file found in volume.'
|
||||
fi &&
|
||||
@@ -23,8 +23,8 @@ services:
|
||||
exec /app/zenfeed --config /app/config/config.yaml
|
||||
"
|
||||
configs:
|
||||
- source: zenfeed_config_base
|
||||
target: /app/config.base.yaml
|
||||
- source: zenfeed_init_config
|
||||
target: /app/config.init.yaml
|
||||
volumes:
|
||||
- data:/app/data
|
||||
- config:/app/config
|
||||
@@ -48,14 +48,14 @@ volumes:
|
||||
config: {}
|
||||
|
||||
configs:
|
||||
zenfeed_config_base:
|
||||
zenfeed_init_config: # After installation, you must modify the configuration through zenfeed or config volume.
|
||||
content: |
|
||||
timezone: ${TZ:-Asia/Shanghai}
|
||||
llms:
|
||||
- name: general
|
||||
default: true
|
||||
provider: siliconflow
|
||||
model: Qwen/Qwen2.5-7B-Instruct
|
||||
model: Qwen/Qwen3-8B
|
||||
api_key: ${API_KEY:-your-api-key}
|
||||
- name: embed
|
||||
provider: siliconflow
|
||||
@@ -69,7 +69,7 @@ configs:
|
||||
- transform:
|
||||
to_text:
|
||||
prompt: |
|
||||
{{ .summary_html_snippet }} Respond in ${LANG:-Chinese}
|
||||
{{ .summary_html_snippet }} Respond in ${LANGUAGE:-Chinese}
|
||||
label: summary_html_snippet
|
||||
embedding_llm: embed
|
||||
notify:
|
||||
|
||||
Reference in New Issue
Block a user