Complete the SSL Certificate Renewal process before building the Docker image.
Prerequisites
Before starting the deployment process, ensure you have:- Access to the infrastructure repository with certificate files
- Docker installed locally
- SSH access to AWS3 node servers
- Certificate files from the renewal process
Build Process
1
Prepare Certificate Files
Ensure you have the certificate files from the renewal process:
certs/letsencrypt/devops.arabiaweather.com/fullchain.crtcerts/letsencrypt/devops.arabiaweather.com/privkey.pem
2
Create Dockerfile
Create a Dockerfile to build the new nginx image with updated certificates:
Update the base image tag (
v2024.10.31-0) to the current version you’re building from.3
Build Docker Image
Build the new image locally:Replace
<new-tag> with an appropriate version tag (e.g., v2025.01.15-0).4
Push Image to Registry
Push the built image to the Docker registry:
5
Deploy to AWS3 Nodes
SSH to the AWS3 node server (e.g., Navigate to the service stack directory:Edit the Update the image reference to use the new tag you built.
node01):current.yml file to update the image tag:6
Deploy Docker Stack
Deploy the updated stack:This will update both services:
minio_nginx- Nginx service with updated certificatesminio_server- MinIO server service
7
Verify Deployment
Check the service status:Verify that the services are running with the new image.
Verification Checklist
After deploying the Docker stack:- Docker image built with new certificates
- Image pushed to registry successfully
- Docker stack deployed without errors
- minio_nginx service running with new image
- minio_server service running
- Services accessible with new certificates

