Files
soul-yongping/soul-api/deploy/docker-compose.runner.yml

22 lines
617 B
YAML
Raw Normal View History

2026-03-20 14:47:37 +08:00
# soul-api Runner 部署
# 红蓝切换在容器内完成,宝塔固定 proxy_pass 到 127.0.0.1:9001
# 使用 network_mode: host无需端口映射避免 iptables DOCKER 链问题
#
# 首次启动docker compose -f docker-compose.runner.yml up -d
# 部署新版本:上传 tar 后执行 deploy-runner-remote.sh
services:
soul-api-runner:
build:
context: ..
dockerfile: deploy/Dockerfile.runner
image: soul-api-runner:latest
container_name: soul-api-runner
network_mode: host
volumes:
- soul_runner_data:/app
restart: unless-stopped
volumes:
soul_runner_data: