Skip to content

OpenChatAlytics/OpenChatAlyticsStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenChatAlyticsStack

Apache 2.0 Licensed

This project contains Docker build information for building and launching the full OpenChatAlytics Stack.

The main Dockerfile will run the whole stack, including the ChatAlytics platform and UI using the default persistence layer with an in memory database. You can find more Dockerfiles including one for setting up ChatAlytics with PostgreSQL too

Setup

All Dockerfiles contained in this project expect you to have the following directory structure:

OpenChatAlytics --|
                  |-- OpenChatAlyticsStack
                  |
                  |-- OpenChatAlytics
                  |
                  |-- OpenChatAlyticsUI

You can then build the image by running the following command from within the OpenChatAlyticsStack directory:

docker build -t chatalytics -f ./Dockerfile ../

The command above tells docker to name the image chatalytics and run the file Dockerfile and use the parent directory as the root. Since we're going to be borrowing resources from OpenChatAlytics/OpenChatAlytics and OpenChatAlytics/OpenChatAlyticsUI setting the parent directory is necessary.

To run the image and expose the UI, web and compute ports you can run the following command:

docker run -d -p 3001:3001 -p 8080:8080 -p 9000:9000 --name chatalytics chatalytics

Note that this requires ports 3001, 8080 and 9000 to be open and available on your local machine. OpenChatAlytics-Web should be available on localhost:8080, OpenChatAlytics-Compute Event Stream on 9000 and OpenChatAlyticsUI should be available on localhost:3001.

If you want to SSH into the container you can run the following command:

docker exec -i -t chatalytics bash

More Dockerfiles

You may notice that there's more than one dockerfile. The main Dockerfile will setup ChatAlytics with the default in memory database.

There's a PostgreSQL dockerfile too which will setup ChatAlytics with PostgreSQL database. To use that dockerfile instead run:

docker build -t chatalytics-psql -f ./Dockerfile ../

and to run it:

docker run -d -p 3001:3001 -p 8080:8080 -p 9000:9000 --name chatalytics-psql chatalytics-psql

About

Docker files to build and launch the full OpenChatalyticsStack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages