Running a distributed server on multiple containers using docker-compose under a bash script

0 votes

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
Apr 20 in Docker by anonymous
• 120 points
86 views
Are you getting any error in the above code?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Docker

0 votes
1 answer

Running docker-compose on a docker gitlab-ci-multi-runner

The problem (as I understand it) is ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 51,950 points
772 views
0 votes
1 answer
+1 vote
5 answers

Set containers timezones by using docker compose.

version "2" services: serviceA: ...READ MORE

answered Jul 8, 2018 in Docker by Atul
• 10,240 points
8,955 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,660 points
780 views