You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Docker Compose for Evaluation with MySQL and Apache HTTP

The following docker setup is only for evaluation purposes. Intland does not recommend using a dockerized database

How to Start codebeamer Application with Docker-Compose

To use own SSL certificate, update the volume section in codebeamer-httpd service according to the certificate file locations, and remove the comments.
  1. Create a new docker-compose.yml file with the content below.
  2. Run the command below to start docker container:
    $ docker-compose up -d
  3. codebeamer is available (Account name: bond, Password: 007) via
  4. Run the command below to stop container:
    $ docker-compose down

docker-compose.yml

# Copyright by Intland Software, https://www.intland.com
#
# All rights reserved.
#
# Please note that if you change this docker file, we do not take any responsibility and we are not liable for
# any damage caused through use of this image, be it indirect, special, incidental
# or consequential damages (including but not limited to damages for loss of business, loss of profits, interruption or the like).


version: '2.1'


services:
  codebeamer-db:
    image: intland/mysql:5.7.21
    environment:
      - MYSQL_USER=user
      - MYSQL_PASSWORD=pass
      - MYSQL_DATABASE=codebeamer
      - MYSQL_MAX_ALLOWED_PACKET=1024M
      - MYSQL_INNODB_BUFFER_POOL_SIZE=1G
      - MYSQL_INNODB_LOG_FILE_SIZE=256M
      - MYSQL_INNODB_LOG_BUFFER_SIZE=256M
    volumes:
      - codebeamer-db-data:/var/lib/mysql/data


  codebeamer-app:
    image: intland/codebeamer:10.1-SP3
    ports:
      - 8080:8080
    environment:
      - WAIT_HOSTS=container-mysql:3306
      - WAIT_HOSTS_TIMEOUT=120
      - CB_database_JDBC_Username=user
      - CB_database_JDBC_Password=pass
      - CB_database_JDBC_Driver=com.mysql.jdbc.Driver
      - CB_database_JDBC_ConnectionURL=jdbc:mysql://container-mysql:3306/codebeamer?autoReconnect=true&zeroDateTimeBehavior=convertToNull&emulateLocators=true&characterEncoding=UTF-8&useSSL=false
      - CB_database_JDBC_Timeout=120
    volumes:
      - codebeamer-app-logo:/home/appuser/codebeamer/repository/config/logo
      - codebeamer-app-repository-docs:/home/appuser/codebeamer/repository/docs
      - codebeamer-app-repository-search:/home/appuser/codebeamer/repository/search
      - codebeamer-app-logs:/home/appuser/codebeamer/logs
      - codebeamer-app-tmp:/home/appuser/codebeamer/tomcat/tmp
    links:
      - codebeamer-db:container-mysql


  codebeamer-httpd:
    image: intland/httpd:1.2
    ports:
      - 8887:8887
      - 8888:8888
    environment:
      - WAIT_HOSTS=codebeamer-app:8080
      - WAIT_HOSTS_TIMEOUT=180
    #Uncomment below lines if you set certificates in environment section
    #volumes:
      #- <PATH_TO_CERTIFICATE>:/home/appuser/certificates/pem/certificate-file.pem
      #- <PATH_TO_CERTIFICATE>:/home/appuser/certificates/pem/certificate-key-file.pem
      #- <PATH_TO_CERTIFICATE>:/home/appuser/certificates/pem/ca-bundle.crt
    links:
      - codebeamer-app


volumes:
  codebeamer-db-data:
  codebeamer-app-logo:
  codebeamer-app-repository-docs:
  codebeamer-app-repository-search:
  codebeamer-app-logs:
  codebeamer-app-tmp:
Since codebeamer 10 release, the /home/appuser/codebeamer/tmp is to be used for temporary directory in volume definition.