mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
feat: 修改配置路径
This commit is contained in:
parent
84863416c5
commit
5ffb3d2d33
1 changed files with 13 additions and 13 deletions
|
|
@ -34,18 +34,18 @@ services:
|
|||
disable: true
|
||||
volumes:
|
||||
# Configuration directory
|
||||
- /home/ubuntu/main/xiaozhi-server/data:/opt/xiaozhi-esp32-server/data
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/data:/opt/xiaozhi-esp32-server/data
|
||||
# Custom config (optional override, uncomment if you need to customize)
|
||||
- /home/ubuntu/main/xiaozhi-server/custom_config.yaml:/opt/xiaozhi-esp32-server/custom_config.yaml
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/custom_config.yaml:/opt/xiaozhi-esp32-server/custom_config.yaml
|
||||
# Model files (important!)
|
||||
- /home/ubuntu/main/xiaozhi-server/models/SenseVoiceSmall:/opt/xiaozhi-esp32-server/models/SenseVoiceSmall
|
||||
- /home/ubuntu/main/xiaozhi-server/models/snakers4_silero-vad:/opt/xiaozhi-esp32-server/models/snakers4_silero-vad
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/models/SenseVoiceSmall:/opt/xiaozhi-esp32-server/models/SenseVoiceSmall
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/models/snakers4_silero-vad:/opt/xiaozhi-esp32-server/models/snakers4_silero-vad
|
||||
# Temporary files
|
||||
- /home/ubuntu/main/xiaozhi-server/tmp:/opt/xiaozhi-esp32-server/tmp
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/tmp:/opt/xiaozhi-esp32-server/tmp
|
||||
# Music files (optional)
|
||||
- /home/ubuntu/main/xiaozhi-server/music:/opt/xiaozhi-esp32-server/music
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/music:/opt/xiaozhi-esp32-server/music
|
||||
# Logs (optional, for debugging)
|
||||
- /home/ubuntu/main/xiaozhi-server/logs:/opt/xiaozhi-esp32-server/logs
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/logs:/opt/xiaozhi-esp32-server/logs
|
||||
|
||||
# ============================================================================
|
||||
# MySQL Database (for xiaozhi-esp32-server)
|
||||
|
|
@ -61,9 +61,9 @@ services:
|
|||
- "3307:3306"
|
||||
volumes:
|
||||
# Persistent database storage
|
||||
- /home/ubuntu/main/xiaozhi-server/mysql/data:/var/lib/mysql
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/mysql/data:/var/lib/mysql
|
||||
# MySQL configuration (optional)
|
||||
# - /home/ubuntu/main/xiaozhi-server/mysql/conf:/etc/mysql/conf.d
|
||||
# - /home/ubuntu/live-agent/main/xiaozhi-server/mysql/conf:/etc/mysql/conf.d
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- MYSQL_ROOT_PASSWORD=123456
|
||||
|
|
@ -101,7 +101,7 @@ services:
|
|||
- "6380:6379"
|
||||
volumes:
|
||||
# Persistent Redis data (optional)
|
||||
- /home/ubuntu/main/xiaozhi-server/redis/data:/data
|
||||
- /home/ubuntu/live-agent/main/xiaozhi-server/redis/data:/data
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru
|
||||
|
|
@ -130,8 +130,8 @@ services:
|
|||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- /home/ubuntu/main/live-agent-api/data/postgres:/var/lib/postgresql/data
|
||||
- /home/ubuntu/main/live-agent-api/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
||||
- /home/ubuntu/live-agent/main/live-agent-api/data/postgres:/var/lib/postgresql/data
|
||||
- /home/ubuntu/live-agent/main/live-agent-api/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
||||
networks:
|
||||
- xiaozhi-network
|
||||
healthcheck:
|
||||
|
|
@ -151,7 +151,7 @@ services:
|
|||
- "19000:9000"
|
||||
- "19001:9001"
|
||||
volumes:
|
||||
- /home/ubuntu/main/live-agent-api/data/minio:/data
|
||||
- /home/ubuntu/live-agent/main/live-agent-api/data/minio:/data
|
||||
networks:
|
||||
- xiaozhi-network
|
||||
healthcheck:
|
||||
|
|
|
|||
Loading…
Reference in a new issue