Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 2.74 KB

README_en.md

File metadata and controls

90 lines (57 loc) · 2.74 KB

All-in-one deployment method

This deployment method starts all Platform's stateless modules on the same host.

ATTENTION!!! This method should not be used in the production environment. This method is recommended only for demonstrations, tests or PoC (Proof of concept).

If you use fully-managed Redis or already have a Redis installation, this might be the ideal model.

Modules

In this method, the modules mentioned in the section Modules of this page must be installed.

Requirements

Access the section Requirements of this page to install the dependencies needed for the modules to work.

Deploy

Installation

1 - Edit the file hybrid.env, which is inside this directory, and replace the values defined as CHANGE_HERE with values consistent with your hybrid environment.

2 - Create an access token for the hybrid environment on the API-Manager following the instructions on [this page]((../README_en.md) (section: Token Generation).

3 - Edit the file sensedia-all-in-one.yaml and modify the versions of the modules, according to the instructions on [this page]((../README_en.md) (section: Changing Modules Version, Port and Other Parameters).

4 - Use the following commands to execute docker-compose referencing the file sensedia-all-in-one.yaml.

cd compose/all-in-one/
sudo docker-compose -f sensedia-all-in-one.yaml up -d

Validation

See container status with the following command.

sudo docker-compose ps

This will display a list of services with the respective status.

Troubleshooting

See the logs of each service with the following command.

sudo docker-compose logs -f SERVICE_NAME

The term SERVICE_NAME must be replaced with the name of the service whose logs you want to see.

Restart the service with the following command.

sudo docker-compose restart SERVICE_NAME

Stop the service with the following command.

sudo docker-compose stop SERVICE_NAME

Start the service again with the following command.

sudo docker-compose start SERVICE_NAME

If you want to stop the service and remove all data, volume, images and container networks, use the following command (only if you really need to).

cd compose/all-in-one/
sudo docker-compose -f sensedia-all-in-one.yaml down
  • Validate your API by making a request to the hybrid gateway; Access this link for documentation on Validation.