song chagne

This commit is contained in:
rahulpscraftech360 2025-08-13 13:30:52 +05:30
parent 70b3976c03
commit 6ae434a2d3
11 changed files with 25 additions and 3 deletions

View file

@ -18,9 +18,9 @@ from queue import Queue, Empty
import opuslib
# --- Configuration ---
SERVER_IP = "192.168.1.102" # !!! UPDATE with your server's local IP address !!!
SERVER_IP = "64.227.170.31" # !!! UPDATE with your server's local IP address !!!
OTA_PORT = 8003
MQTT_BROKER_HOST = "192.168.1.102" # MQTT gateway IP
MQTT_BROKER_HOST = "64.227.170.31" # MQTT gateway IP
MQTT_BROKER_PORT = 1883
# DEVICE_MAC is now dynamically generated for uniqueness
PLAYBACK_BUFFER_MIN_FRAMES = 3 # Minimum frames to have in buffer to continue playback

View file

@ -1,3 +1,4 @@
version: '3'
services:
# Server模块
@ -53,7 +54,28 @@ services:
volumes:
# 配置文件目录
- ./uploadfile:/uploadfile
#
# 数据库模块
xiaozhi-esp32-server-db:
image: mysql:latest
container_name: xiaozhi-esp32-server-db
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
networks:
- default
expose:
- 3306
volumes:
- ./mysql/data:/var/lib/mysql
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=xiaozhi_esp32_server
- MYSQL_INITDB_ARGS="--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci"
# redis模块
xiaozhi-esp32-server-redis:
image: redis
expose:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.