fix: docker文件修改固定容器名

This commit is contained in:
leo 2025-11-06 20:52:03 +08:00
parent 3ad597c1a1
commit 089c1a20fd

View file

@ -10,7 +10,6 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: xiaozhi-esp32-server:local image: xiaozhi-esp32-server:local
container_name: xiaozhi-esp32-server
depends_on: depends_on:
xiaozhi-esp32-server-db: xiaozhi-esp32-server-db:
condition: service_healthy condition: service_healthy
@ -62,7 +61,6 @@ services:
# image: ghcr.nju.edu.cn/xinnan-tech/xiaozhi-esp32-server:web_latest # image: ghcr.nju.edu.cn/xinnan-tech/xiaozhi-esp32-server:web_latest
# platform: linux/amd64 # Uncomment to force x86 emulation on ARM64 # platform: linux/amd64 # Uncomment to force x86 emulation on ARM64
container_name: xiaozhi-esp32-server-web
restart: unless-stopped restart: unless-stopped
networks: networks:
- xiaozhi-network - xiaozhi-network
@ -99,7 +97,6 @@ services:
# ============================================================================ # ============================================================================
xiaozhi-esp32-server-db: xiaozhi-esp32-server-db:
image: mysql:8.0 image: mysql:8.0
container_name: xiaozhi-esp32-server-db
restart: unless-stopped restart: unless-stopped
networks: networks:
- xiaozhi-network - xiaozhi-network
@ -139,7 +136,6 @@ services:
# ============================================================================ # ============================================================================
xiaozhi-esp32-server-redis: xiaozhi-esp32-server-redis:
image: redis:7-alpine image: redis:7-alpine
container_name: xiaozhi-esp32-server-redis
restart: unless-stopped restart: unless-stopped
networks: networks:
- xiaozhi-network - xiaozhi-network
@ -170,7 +166,6 @@ services:
networks: networks:
xiaozhi-network: xiaozhi-network:
driver: bridge driver: bridge
name: xiaozhi-local-network
# ============================================================================ # ============================================================================
# Volumes (optional - for named volumes instead of bind mounts) # Volumes (optional - for named volumes instead of bind mounts)