Hi everyone I'm trying to run a distributed server on multiple containers so I used docker compose for that, but only for two containers well I'm willing for using a bash script that allow me to use multiple containers by passing number of containers that I want to create to that bash script any suggestion
version: '2'
services:
clusterhost:
image: <distributed server image>
hostname: clusterhost
container_name: clusterhost
entrypoint: /bin/start-server --dist
worker1:
image: <distributed server image>
hostname: worker1
container_name: worker1
depends_on:
- clusterhost
entrypoint: bin/start-server --dist