Creating the TIBCO Mashery Local Cluster on On-premises VirtualBox using Swarm

Follow these steps to create the TIBCO Mashery Local cluster:
  1. Deploy NoSQL components first. The first NoSQL container is deployed as seed. Open the file tmgc-nosql.yml and replace ${HOST_NAME} with name of host. Name of the host is the value shown under HOSTNAME column in the output of docker node ls command. In case of on-premises VirtualBox, you can replace this with "master" as we create a VM with name "master" and execute the following command:
    docker stack deploy -c tmgc-nosql.yml nosqlstack
    Make sure it gets deployed successfully before proceeding. Run docker service ls and successful output should show nosqlstack_nosql_seed is replicated.
    If you have more than one NoSQL component and you want each of them to be deployed on separate node, then open the file tmgc-nosql-ring.yml and replace ${HOST_NAME} with the desired host and make replicas equal to 1 (replicas: 1 ) on line 6 and run below command after each change.
    docker stack deploy -c tmgc-nosql-ring.yml nosqlnonseedstack
    Successful output should show nosqlnonseedstack_nosql_nonseed is replicated.
  2. Deploy Configuration Manager (CM). It starts two containers: tmlcm and tmlapi. Run the following command:
    docker stack deploy -c tmgc-cm.yml cmstack
  3. Deploy Log Service. Open the file tmgc-log.yaml and replace ${HOST_NAME} with the desired host for each instance of log deployment and make replicas equal to 1 (replicas: 1 ) on line 6 and run the following command after each change.
    docker stack deploy -c tmgc-log.yml logstack
  4. Deploy SQL Service. Open the file tmgc-sql.yaml and replace ${HOST_NAME} with the desired host where you want deploy SQL service and run the following command. As per design, you can only have one SQL per zone.
    ./deploy-sql-pod.sh
  5. Deploy Cache Service. Open the file tmgc-cache.yaml and replace ${HOST_NAME} with the desired host for each instance of cache deployment and make replicas equal to 1 (replicas: 1 ) on line 6 and run the following command after each change.
    docker stack deploy -c tmgc-cache.yml cachestack
  6. Deploy Traffic Manager (TM) Service. Run the following command. TM will be distributed by Swarm Manager among available nodes.
    ./deploy-tm-pod.sh