feat(stack): 合并 docker-dev-sync 到 docker-dev 配置,统一 Dockerfile

This commit is contained in:
augushong
2026-07-22 01:27:52 +08:00
parent bed965a9b1
commit 28576def0a
11 changed files with 30 additions and 294 deletions

View File

@@ -52,3 +52,24 @@ services:
depends_on:
mysql:
condition: service_healthy
# Sync profile: Windows I/O optimization via rsync host->container
# Enable with: COMPOSE_PROFILES=sync docker compose up -d
# Note: ulthon_admin and ulthon_admin_sync both bind port 8000, do not run together.
ulthon_admin_sync:
profiles: ["sync"]
build:
context: ../../..
dockerfile: source/stack/docker-dev/Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ../../..:/var/www/source
environment:
- SYNC_INTERVAL=${SYNC_INTERVAL:-3}
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
mysql:
condition: service_healthy