Run the Docker Containers with Docker Compose
This topic guides you to run the Docker Containers with Docker Compose for both Digital.ai Release and Digital.ai Deploy.
To run the Docker image with Digital.ai Release, see Docker images for Release.
Version-specific Docker images for Digital.ai Release and Digital.ai Deploy are published to Docker Hub:
Prerequisites
Before you start, ensure you have the following:
- Docker installed on your machine. You can download it from Docker's official website.
- Docker Compose installed. Follow the instructions on Docker Compose installation.
Run the Containers Using the docker-compose.yaml
File
To start both Digital.ai Deploy and Digital.ai Release with a persistent setup:
-
Download the Docker Compose file using the following command:
curl https://raw.githubusercontent.com/xebialabs/xl-docker-images/master/docker-compose-example/docker-compose.yaml > docker-compose.yaml
-
Open the
docker-compose.yaml
file and change theADMIN_PASSWORD
for both servers to a secure password. -
Run the file with Docker Compose:
docker-compose up -d
-
Access Release at
http://localhost:5516/
and Deploy athttp://localhost:4516/
.
After setup, you can remove the passwords from the docker-compose.yaml
file.
You must provide a valid license before you can log in. Browse to the URLs above and paste the licenses for the appropriate product. If you do not have a license yet, apply for a Release Trial License or a Deploy Trial License on the XebiaLabs website.
Set Up Digital.ai Release and Digital.ai Deploy Using Docker Compose
If you want to use Digital.ai Deploy and Digital.ai Release together, both servers need to be able to identify each other. When you start a single instance of a Docker container, the network is not configured to allow the two servers to identify each other. To link the instances of the two servers, you can use Docker Compose. This also allows you to start both containers at the same time and move all command line options into a file.
-
Create a file called
docker-compose.yaml
and copy the following contents into it:xld:
image: xebialabs/xl-deploy:24.3.0
container_name: xld
ports:
- "4516:4516"
xlr:
image: xebialabs/xl-release:24.3.0
container_name: xlr
ports:
- "5516:5516"
links:
- xld -
Start both containers using the following command:
docker-compose up -d
-
Both containers will start, and the passwords can be viewed using these commands:
docker logs xlr
docker logs xld -
Log in to Digital.ai Release with the admin password. You can configure the Digital.ai Deploy server under Configuration > Connections in the navigation pane. Use the following settings:
noteYou can run Deploy or Release containers individually by modifying the
docker-compose.yaml
file to contain only the code specific for each product.