Example package
This page provides instructions and sample scripts on how to build Cassandra and Teamwork Cloud containers from the Teamwork Cloud No Install archive. These containers can be run on any orchestration platform together with WebApps to ensure easy Teamwork Cloud deployment.
To build your Teamwork Cloud container, download the ZIP archive below:
Creating a Docker image
To create a Docker image
Create a working directory image/
Extract the content of Teamwork Cloud No Install archive for Linux to image/ to create a folder named image/TeamworkCloudSuite/
You can modify your configurations as needed:
TeamworkCloudSuite/jvm.options
TeamworkCloudSuite/configuration/application.conf
TeamworkCloudSuite/configuration/logback.xml
Run the following command. Do not forget to add a space and a full stop at the end.
docker build -t twcloud .
You can choose a different image name, if necessary.
Example with Docker Compose
This requires 12GB of RAM.
- Create a working directory compose/
- Copy the content from image/TeamworkCloudSuite/configuration to compose/configuration
- Modify configurations as needed:
- configuration/application.conf
- configuration/logback.xml
- In this sample, it is mandatory to modify configuration/application.conf as follows:
- Change the key value esi.persistence.datastax-java-driver.basic.contact-points from 127.0.0.1:9042 to cassandra:9042
- (Optional) You can modify the memory limits for Cassandra and Teamwork Cloud in docker-compose.yml
Run the following command. Do not forget to add a space and a full stop at the end.
docker build -t twcloud .
You can choose a different image name, if necessary.
Helpful commands
To show the output of the Teamwork Cloud Docker container:
docker compose logs -f twcloud
To stop all Compose containers:
docker compose stop
To stop and remove all containers:
docker compose down -v
Building Teamwork Cloud containers in a clustered environment
To build Teamwork Cloud container in a cluster
- Create a Docker image.
- Then do the following on each host:
- Expose port 2552 by adding it to compose/docker-compose.yml#twcloud.ports (same as 8111 port).
- Configure compose/configuration/application.conf key akka.cluster.seed-nodes as as described in the article Teamwork Cloud Cluster Setup.
- Modify CASSANDRA_SEEDS in compose/docker-compose.yml as described in the article Teamwork Cloud Cluster Setup.
Run command:
docker compose up -d
Configuring Cassandra on a host machine
Docker provides a special hostname for the host machine: host.docker.internal
How to use the special hostname
- Change the configuration/application.conf key esi.persistence.datastax-java-driver.basic.contact-points to host.docker.internal:9042
- Remove or comment all sections of cassandra under services in docker-compose.yml
- Remove or comment all sections of depends_on under twcloud