Deploying Installation Tools with Docker Compose
Prerequisites
Before we begin, ensure you have the following installed on your system:
- Docker and Docker Compose: Installation instructions can be found here.
- Git: Installation instructions can be found here.
Step 1: Logging into Docker
To access a private Docker registry, you'll need to authenticate with your Docker credentials.
- Log in to Docker:
Follow the prompts to enter your Docker username and password.
Step 2: Create a Directory for Deployment
Create a directory where you will download and store the Docker Compose file.
- Open a terminal.
- Create a new directory:
Step 3: Download the Docker Compose File
Next, download the Docker Compose file from the provided URL.
-
Using
curl
: -
Alternatively, using
wget
:
Step 4: Deploy the Docker Container using Docker Compose
Once you have the docker-compose.yml
file downloaded into your liberty-admin
directory, use Docker Compose to deploy the container.
-
In the terminal, navigate to the
liberty-admin
directory (if not already there): -
Deploy the Docker container:
This command will pull the necessary images from the registry (if they are not already available locally) and start the containers in detached mode.
Step 5: Verify the Deployment
To ensure the deployment is successful, you can check the status of the containers.
- List the running containers:
You should see the following containers running as defined in the docker-compose.yml
file:
- traefik: This service is managing routing and load balancing, and exposes several endpoints for web (port 3000), websecure (port 3443), dashboard (port 8080), and database (port 5432).
- portainer: This service provides a UI for managing Docker environments, accessible via paths prefixed with
/portainer
. - error-pages: This service handles error pages and is available to respond to general HTTP requests.
Summary of Commands
Accessing Services
After deployment, you can access the services with the following URLs:
- Traefik Dashboard: Accessible at http://
<your_server_ip>
:8080/dashboard/ (authentication may be required). - Portainer: Accessible at http://
<your_server_ip>
:3000/portainer or https://<your_server_ip>
:3443/portainer.
Replace <your_server_ip>
with the IP address or hostname of your server.
Feel free to reach out if you have any further questions or run into any issues!