Docker all-in-one
This guide walks you through deploying Talisman Platform using Docker Compose. This deployment option includes everything necessary to run the platform on Docker, such as the Talisman Application, Postgres Database, Gitea for Git, a Maven Repository for Java artifacts, and an Image Registry for Docker images.
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/
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 placeholder for SHARED_FOLDER
with the real value or set corresponding environment variable:
name: talisman
services:
talisman:
container_name: talisman
image: talismancloud/talisman:4.7.4-basic
restart: always
environment:
- TALISMAN_GITEA_INIT=true
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "${SHARED_FOLDER}:/app/shared"
depends_on:
postgres:
condition: service_healthy
gitea:
condition: service_healthy
networks:
- talisman
postgres:
container_name: postgres
image: talismancloud/talisman-postgres:4.7.4
restart: always
networks:
- talisman
gitea:
container_name: gitea
restart: always
image: talismancloud/talisman-gitea:4.7.4
depends_on:
postgres:
condition: service_healthy
networks:
- talisman
reposilite:
container_name: reposilite
restart: always
image: talismancloud/talisman-reposilite:4.7.4
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:
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 admin
:talisman
. Open your web browser and navigate to http://localhost:8080
.
Important Note: This username and password should be changed.