Docker Image
Deploying Xyne on AWS
If you want to deploy Xyne on AWS instead of your local machine, this document will give you a detailed guide to do so. Follow the steps listed below to get started :
Connect to the instance remotely:
Once you have your instance up and running, you can use your terminal to connect to your instance remotely. Use this command to connect to your instance :
Install the required dependencies :
Deployment of Xyne on AWS EC2 using docker image requires you to only install Docker and Docker Compose:
Once you have installed the dependencies, you can use the following steps to set up the instance.
Clone the repository :
Use the following git command to clone the Xyne repository.
Pre Execution Setup [Environment Variables]:
For enabling Google Authentication for your application you need to create your google credentials and setup some environment variables:
You can obtain the GOOGLE_CLIENT_ID
and GOOGLE_SECRET
by following guide :
Setup Google Credentials
Setup your Google Credentials for the application.
Server side:
Inside the server
folder of the xyne
folder, you will find a .env.default
file, this is the .env file that our docker uses.
For the moment you will find some default generated environment variables that we’ve set up for the app to work.
In the .env.default
file, you can modify the following and replace the missing values with your own :
You can checkout the AI Providers section for better clarity :
Setup AI Providers for Xyne
Setup your AI Provider.
Deploy Xyne with Docker :
Run the following command to run the application :
Your application is now deployed :
Your application is now running and will be available in your EC2 Public IPv4 DNS address.
Post Execution Setup [ Frontend Environment Variables]
After you have deployed your application, you need to setup some frontend variables for your application.
For this create a .env.production
in your application, and then add the following :
Now you need to add this to the docker container running the app, for this use :
And then rebuild the frontend using :
Ingesting data
Follow the guide below to learn more about ingesting data into Xyne app:
Ingest data in Xyne app
Ingest data into Xyne app.