2024-05-22 17:26:00 +08:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
wikijs:
|
2024-10-11 01:18:00 +08:00
|
|
|
image: requarks/wiki:2.5.304
|
2024-05-22 17:26:00 +08:00
|
|
|
container_name: wikijs
|
|
|
|
hostname: wikijs
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- app_network
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
|
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
|
|
|
- wikijs_data:/wiki/data
|
|
|
|
- wikijs_backup:/backup
|
|
|
|
# 使用 sqlite 数据库时需要指定
|
|
|
|
- wikijs_db:/sqlite/data
|
|
|
|
environment:
|
|
|
|
- DB_TYPE="sqlite"
|
|
|
|
- DB_FILEPATH="/sqlite/data/wikijs.db"
|
|
|
|
# - DB_TYPE="mysql"
|
|
|
|
# - DB_HOST="hty1024-db-mysql-service.hty1024-db"
|
|
|
|
# - DB_PORT="3306"
|
|
|
|
# - DB_USER="wikijs"
|
|
|
|
# - DB_PASS="123456"
|
|
|
|
# - DB_NAME="wikijs"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
wikijs_data:
|
|
|
|
wikijs_backup:
|
|
|
|
wikijs_db:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
app_network:
|
|
|
|
name: app_network
|
|
|
|
external: true
|
|
|
|
# driver: bridge
|
|
|
|
# driver_opts:
|
|
|
|
# encrypted: 'true'
|
|
|
|
# ipam:
|
|
|
|
# driver: default
|
|
|
|
# config:
|
|
|
|
# - subnet: 10.21.22.1/24
|