Skip to content

Docker with custom git

This guide walks you through deploying Talisman Platform using Docker Compose. This method includes everything required to run the platform on Docker, along with the capability to utilize your custom git repository. The deployment setup covers the Talisman Application, Maven Repository, and Image Registry components.

Prerequisites

  • Docker installed and running on your system. You can find instructions for installing Docker on the Docker website: https://docs.docker.com/engine/install/
  • Docker Compose installed. You can find instructions for installing Docker Compose on the Docker documentation: https://docs.docker.com/compose/install/
  • Empty Git Repository: You will need an empty Git repository to store your project files. You can create a free Git repository on services like GitHub.

Steps

1. Create a Docker Compose file (docker-compose.yaml):

Create a file named docker-compose.yaml in your project directory. Paste the following content into the file, replacing the placeholders for TALISMAN_VERSION, REPOSITORY, USERNAME, PASSWORD, BRANCH, SHARED_FOLDER with the real values or set corresponding environment variables:

name: talisman

services:

  talisman:
    container_name: talisman
    image: talismancloud/talisman:4.7.0-basic
    restart: always
    ports:
      - "8080:8080"
    environment:
      - KARAVAN_GIT_REPOSITORY=${REPOSITORY}
      - KARAVAN_GIT_USERNAME=${USERNAME}
      - KARAVAN_GIT_PASSWORD=${PASSWORD}
      - KARAVAN_GIT_BRANCH=${BRANCH}
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"  
      - "${SHARED_FOLDER}:/app/shared"
    depends_on:
      postgres:
        condition: service_healthy  
    networks:
      - talisman

  postgres:
    container_name: postgres
    image: talismancloud/talisman-postgres:4.7.0
    restart: always
    networks:
      - talisman

  reposilite:
    container_name: reposilite
    restart: always
    image: talismancloud/talisman-reposilite:4.7.0
    networks:
      - talisman

  registry:
    container_name: registry
    restart: always
    image: registry:2
    networks:
      - talisman

networks:
  talisman:
    name: talisman

2. Start Talisman Platform:

Navigate to the directory containing your docker-compose.yaml file and run the following command:

docker compose up

3. Access Talisman Platform:

Once the container is up and running, you can access the Talisman Platform web interface for demonstration purposes using the default username and password talisman:talisman. Open your web browser and navigate to http://localhost:8080.

Important Note: This username and password are for demonstration only and should not be used in a production environment. Refer to the Talisman Platform documentation for secure authentication methods for production use.