Skip to main content

Services

Services are docker containers that run your code.

You must create a new service for each component of your application - backend, frontend, worker, cron jobs and so on.

Types

You can create a new service, and point its source to a git repo & branch that has the code of your component and its corresponding Dockerfile. We expect a Dockerfile here so that LocalOps can pull the code and build a docker image before deplying it for a service within the app environment.

LocalOps supports any dockerised workload to run as a service.

Automatic build and deployment

When you push your code to configured git repo and branch, LocalOps pulls the code, builds the image and deploys it in the corresponding service in the corresponding environment. All images are built and hosted in LocalOps infrastructure.

Number of containers

For every service, you can define the number of containers to run. This is so that you can create redundancy for your service and prevent downtimes during peak hours.

Compute / Memory requirements:

For every container in a service, you can define compute (vCPU) and memory requirements (MB). LocalOps would provision these appropriately within your environment.

This is also done to scale your service appropriately for your usecase.

Automatic load balancing

If you specified to run more than 1 container in your service, and if it is a web or internal or spa service, requests will automatically be load balanced between available containers.

Auto healing

Containers behind a service auto-restart when they crash.

Secrets

You can define any number secrets and environment vars for each service. They will be encrypted and stored directly on the connected cloud account's secret manager (say Parameter store in AWS). And they will made available as environment variables in the corrsponding service.

Manage services

In any environment, go to "Services" tab to create/update/delete services. Learn more from the following sections:

  1. Create a new service
  2. Deploy new changes to a service
  3. Delete service

For any questions, write to [email protected]. Our engineers will help you get started.