Docker
To run the application (Client-side) using Docker, follow the steps below.
Prerequisites
- Docker
- Docker Compose
- Docker images built (see How to Install)
Usage
-
Verify that the Docker images have been built and the "main" services are running:
docker compose ps
!Note: The output should be similar to the following:
PI> docker compose ps NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS normalizer_container tts-agentifai:normalizer "python app_normaliz…" normalizer 13 seconds ago Up 12 seconds 50051/tcp proxy_container tts-agentifai:proxy "python app_proxy -d" proxy 13 seconds ago Up 11 seconds 0.0.0.0:50051->50051/tcp, :::50051->50051/tcp server_container1 tts-agentifai:server "python app_server" server_1 13 seconds ago Up 12 seconds 50051/tcp server_container2 tts-agentifai:server "python app_server" server_2 13 seconds ago Up 12 seconds 50051/tcp server_container3 tts-agentifai:server "python app_server" server_3 13 seconds ago Up 12 seconds 50051/tcp
!Note: The
normalizer_container
,proxy_container
, andserver_containerX
services should be running. -
Run endpoints:
-
Client:
docker compose run -e PROXY_SERVER_PORT={PROXY_SERVER_PORT} -e PROXY_SERVER_ADDRESS={PROXY_SERVER_ADDRESS} client
!Note: The
PROXY_SERVER_PORT
andPROXY_SERVER_ADDRESS
are optional and default to50051
andproxy_container
, respectively.!Note: The client will be available in the opened terminal.
-
Frontend and API:
docker compose run frontend
!Note: The frontend will be available at
http://localhost:3000
and the API will be available athttp://localhost:5000
.
-
-
The output will be displayed in the terminal.