A. 最终效果
B. 配置文件
version: "3"
services:wiki:image: ghcr.io/requarks/wiki:2container_name: wikijsports:- "3000:3000"volumes:- /home/lgk/Projects/WikiJS/config:/configenvironment:- DB_TYPE=postgres- DB_HOST=database- DB_PORT=5432- DB_USER=wikijs- DB_PASS=wikijsrocks- DB_NAME=wiki- SEARCH_TYPE=elasticsearch- SEARCH_HOST=http://elasticsearch:9200- SEARCH_INDEX_NAME=wikidepends_on:- database- elasticsearchdatabase:image: postgres:15-alpinecontainer_name: wikijs_postgresenvironment:POSTGRES_DB: wikiPOSTGRES_PASSWORD: wikijsrocksPOSTGRES_USER: wikijsvolumes:- /home/lgk/Projects/WikiJS/data:/var/lib/postgresql/dataelasticsearch:image: docker.elastic.co/elasticsearch/elasticsearch:7.17.13container_name: elasticsearchenvironment:- discovery.type=single-node- bootstrap.memory_lock=false- ES_JAVA_OPTS=-Xms512m -Xmx512m- xpack.security.enabled=false volumes:- /home/lgk/Projects/WikiJS/esdata:/usr/share/elasticsearch/dataports:- "9200:9200"
C. 中文搜索设置
http://elasticsearch:9200