You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "DanielLeens (via GitHub)" <gi...@apache.org> on 2026/04/06 13:45:43 UTC

[PR] [Improve][Docs] Update docker-compose cluster setup to use service name discovery [seatunnel]

DanielLeens opened a new pull request, #10716:
URL: https://github.com/apache/seatunnel/pull/10716

   ## Summary
   
   This PR updates the Docker cluster getting-started documentation (both EN and ZH) to replace the fragile static IP-based configuration with Docker DNS service name discovery.
   
   ### Problems with the old approach
   
   - `ST_DOCKER_MEMBER_LIST=172.16.0.2,172.16.0.3,172.16.0.4` requires IPAM static IP assignment, which is brittle and environment-specific
   - `version: '3.8'` is deprecated in Docker Compose v2 and produces warnings
   - No `restart` policy means containers do not recover from crashes
   - Client submit commands required users to manually look up the master container IP
   
   ### Changes
   
   - **Remove `version: '3.8'`** — deprecated in Docker Compose v2 (compose-spec)
   - **Replace static IP member list** with container service name format: `seatunnel_master:5801,seatunnel_worker_1:5801,seatunnel_worker_2:5801`
   - **Remove IPAM subnet configuration** from all service network sections
   - **Add `name: seatunnel-network`** to top-level networks to avoid Docker Compose project-name prefix
   - **Use list format for service networks**: `- seatunnel_network` (valid YAML per compose-spec)
   - **Add `restart: unless-stopped`** to all services
   - **Update client submit commands** to use hostname and add separate `-m local` / `-m cluster` examples
   - Applied to both `docs/en` and `docs/zh`
   
   ### Validation
   
   - `docker compose config` passes with correct YAML structure
   - 3-node cluster (1 master + 2 workers) starts cleanly with `docker compose up -d`
   - Master logs confirm `Members {size:3}` with both workers registered
   - `seatunnel_master`, `seatunnel_worker_1`, `seatunnel_worker_2` resolve correctly via Docker DNS
   
   Related to apache/seatunnel-website#443 and apache/seatunnel-website#444


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][Docs] Update docker-compose cluster setup to use service name discovery [seatunnel]

Posted by "zhangshenghang (via GitHub)" <gi...@apache.org>.
zhangshenghang merged PR #10716:
URL: https://github.com/apache/seatunnel/pull/10716


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org