optimize docker compose yml

This commit is contained in:
glidea
2025-06-05 23:27:05 +08:00
parent 7bec054369
commit ead8286a48

View File

@@ -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: