Skip to content

Docker with custom git

Talisman

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 REPOSITORY, USERNAME, PASSWORD, BRANCH with the real values:

name: talisman

services:

  talisman:
    container_name: talisman
    image: talismancloud/talisman:4.5.0-basic
    environment:
      - talisman.loadExamples=true
    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"    
    networks:
      - talisman

  reposilite:
    container_name: reposilite
    image: talismancloud/talisman-reposilite:4.5.0
    networks:
      - talisman    

  registry:
    container_name: registry
    image: registry:2
    ports:
      - "5555:5000"
    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.