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, 2020 in Docker by anonymous
• 120 points
549 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
• 52,360 points
1,795 views
0 votes
1 answer
+1 vote
5 answers

Set containers timezones by using docker compose.

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

answered Jul 9, 2018 in Docker by Atul
• 10,240 points
22,756 views
+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
• 58,090 points
2,467 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP