Deploying Liberty Framework with Portainer
This guide will walk you through deploying Liberty Framework using Portainer, based on the Compose file located at the following URL: liberty-framework.yml.
Prerequisites
Before you begin, ensure the following prerequisites are met:
- You have Docker installed and running on your server. Installation instructions can be found here.
- You have Portainer installed and running on your server. Installation instructions can be found here.
- You have access to the Portainer web interface. The URL typically looks like
http://your-server-ip:3000
orhttps://your-server-ip:3443
.
Accessing Portainer
-
Open a web browser and navigate to the Portainer web interface.
-
Log in with your Portainer credentials.
-
Set a password first time you log into Portainer
Logging into a Custom Registry
-
In the Portainer web interface, navigate to
Registries
from the sidebar. -
Click on the
+ Add registry
button. -
Provide the following details for your custom registry:
- Name: A friendly name for your registry.
- URL: The URL of your custom registry (e.g.,
ghcr.io/fblettner
). - Username: Your registry username (this user will be provided by Nomana-IT).
- Password: Your registry password (this token will be provided by Nomana-IT).
-
After filling in the details, click on the
Add Registry
button to save the registry.
Deploy the Stack
-
In the Portainer web interface, navigate to
Stacks
from the sidebar. -
Click on the
+ Add Stack
button. -
Provide a name for your stack in the
Name
field. -
Under the
Git repository
tab:-
Enter the Repository URL:
-
In the Compose path field, specify:
-
-
Scroll down and click on the
Deploy the stack
button.
Verify Deployment
-
Once the stack is deployed, navigate to
Containers
from the sidebar. -
Verify that the containers listed in the Compose file are running.
-
Access the services through the designated ports to ensure everything is functioning as expected.
Alternative: Pull Docker Images from Terminal
If you prefer to pull Docker images directly from the terminal, you can do so using the following commands:
-
Open a terminal and log in to the custom registry:
When prompted, enter your username and password (token).
-
Pull the required Docker images manually:
Steps for AWS Users
If you are using AWS and need to connect via AWS CLI, follow these steps:
-
Configure your AWS CLI:
Follow the prompts to enter your AWS Access Key, Secret Access Key, default region name, and output format.
-
Log in to the AWS Elastic Container Registry (ECR):
Replace
<your-aws-account-id>
with your actual AWS account ID.
Additional Resources
By following this guide, you should be able to deploy Liberty Framework using Portainer seamlessly. If you run into any issues or have any questions, refer to the additional resources provided or reach out to the respective support communities.
Summary
URLs:
- Web Application: /
- API: /api
- PgAdmin: /pgadmin
- Rundeck: /rundeck
- OIDC: /oidc
- Filebrowser: /filebrowser
Services: - node: ghcr.io/fblettner/liberty-node:latest (Port 3002) - pg: ghcr.io/fblettner/liberty-pg:latest (Port 5432) - pgadmin: ghcr.io/fblettner/liberty-pgadmin:latest (Port 3003) - rundeck: ghcr.io/fblettner/liberty-rundeck:latest (Port 4440) - oidc: ghcr.io/fblettner/liberty-keycloak:latest (Port 8080) - filebrowser: ghcr.io/fblettner/liberty-filebrowser:latest (Port 80)
Details of all Liberty Framework Services can be found here.