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

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  docker PostgreSQL

Docker Compose for Evaluation with PostgreSQL Service

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

How to Start a codebeamer Application with Docker-Compose

  1. Create a new docker-compose.yml file with the content below, and change the codebeamer version to the appropriate version (image: intland/codebeamer:10.1-SP3)
  2. Run the command below to start docker container:
    $ docker-compose up -d
  3. codebeamer is available on http://localhost:8080 (Account name: bond, Password: 007)
  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/postgres:debian-12.6.3
    environment:
      - POSTGRESQL_USER=user
      - POSTGRESQL_PASSWORD=pass
      - POSTGRESQL_DATABASE=codebeamer
      - TZ=UTC
    volumes:
      - codebeamer-db-data:/var/lib/postgresql/data
    networks:
      - cb

  codebeamer-app:
    image: intland/codebeamer:21.09-lts
    ports:
      - 8080:8080
    environment:
      - DEBUG=false
      - TZ=Europe/Berlin
      - WAIT_HOSTS=codebeamer-db:5432
      - WAIT_HOSTS_TIMEOUT=120
      - "CB_database_JDBC_Username=user"
      - "CB_database_JDBC_Password=pass"
      - "CB_database_JDBC_Driver=org.postgresql.Driver"
      - "CB_database_JDBC_ConnectionURL=jdbc:postgresql://codebeamer-db:5432/codebeamer"
    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
    networks:
      - cb

networks:
  cb:

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/repository/tmp is to be used for temporary directory in volume definition. See Test upgrade with docker for more information on version upgrade.