mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(stack): 合并 docker-dev-sync 到 docker-dev 配置,统一 Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user