forked from DevOps/deploy.stack
1. 将所有环境变量中的Volumes_PATH统一改为Volumes_Path 2. 把旧的.env.cnf文件重命名为.env.cfg 3. 将compose.yaml文件统一替换为stack.yml/compose.yml格式 4. 删除冗余的旧版compose配置文件
35 lines
912 B
YAML
35 lines
912 B
YAML
# mkdir -pv /data/volumes/searxng/{redis-data,etc-searxng}
|
|
# pull:: docker compose --env-file ./searxng/env.cfg -f ./searxng/stack.yml pull
|
|
# Run:: docker compose --env-file ./searxng/env.cfg -f ./searxng/stack.yml up -d
|
|
|
|
services:
|
|
|
|
valkey:
|
|
image: ${Valkey_TAG}
|
|
container_name: redis
|
|
restart: unless-stopped
|
|
command: valkey-server --save 60 1 --loglevel warning
|
|
networks:
|
|
- searxng
|
|
volumes:
|
|
- ${Volumes_Path}/redis-data:/data
|
|
|
|
searxng:
|
|
image: ${SearXNG_TAG}
|
|
container_name: searxng
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- valkey
|
|
environment:
|
|
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
|
|
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
|
|
ports:
|
|
- 8760:8080
|
|
networks:
|
|
- searxng
|
|
volumes:
|
|
- ${Volumes_Path}/etc-searxng:/etc/searxng:rw
|
|
- ${Volumes_Path}/searxng-data:/var/cache/searxng:rw
|
|
|
|
networks:
|
|
searxng: |