# Installation
DebiAI offers several installation methods:
# Official Docker image (recommended)
# Docker run
Requirements :
Using our public docker image is the recommended way to deploy DebiAI on your project server or locally.
docker run -p 3000:3000 debiai/app
Debiai will be available on http://localhost:3000/ (opens new window)
The next step is to provide data to DebiAI: Inserting data into DebiAI
Options :
You can add the -d
flag to run the container in the background.
If you want DebiAI to run on a different port, set the -p
flag to -p <MyPort>:3000
.
Using a volume to store the data is also possible. If you want to set a volume to DebiAI, set the -v
flag to -v <MyVolume>:/backend/data/
, <MyVolume>
being the absolute path of the empty folder to store your data in.
For example:
mkdir /tmp/debiai
docker run -p 3000:3000 -v /tmp/debiai:/backend/data/ debiai/app
You can also provide additional environment variables to tell DebiAI if you have some data-providers (see Data providers for more information).
# Docker-compose
Here is a Docker-compose file that will help you deploy DebiAI without having to remember the docker run command.
Requirements :
The DebiAI Docker-compose file :
version: "3.8"
services:
debiai:
image: "debiai/app"
ports:
- "3000:3000"
volumes:
- ./debiai_data:/backend/data
How to start DebiAI with Docker-compose :
mkdir debiai
cd debiai
# Create and copy/paste the docker-compose file
nano docker-compose.yml
# Start DebiAI
docker-compose up
Debiai will be available on http://localhost:3000/ (opens new window)
# Start DebiAI in background
docker-compose up -d
# Stop DebiAI
docker-compose down
You can also provide additional environment variables to tell DebiAI if you have some data-providers (see Data providers for more information).
# Build image from source
We also provide way to build the image instead of pulling it. This is useful if you want to deploy DebiAI with local changes.
# Docker build
Requirements :
Build the docker image :
git clone https://github.com/debiai/debiai.git
cd debiai
docker build -t debiai .
Run the docker image :
docker run -d -p 3000:3000 --restart=always debiai
DebiAI will be available by default at this url : http://localhost:3000/ (opens new window)
Stop the docker image :
docker stop debiai
Update the docker image :
git pull
docker stop debiai
docker container rm debiai
# Then build and run the docker image
# Docker-compose-build
Using our Docker-compose-build (opens new window) file.
Requirements :
Using the docker-compose-build.yml
file will build and run the DebiAI docker image for you.
git clone https://github.com/debiai/debiai.git
cd debiai
docker-compose -f docker-compose-build.yml up -d
DebiAI will be available by default at this url : http://localhost:3000/ (opens new window)
A volume will be created with the debiai_data
folder.
You can now provide your project data to DebiAI : Inserting data into DebiAI
To stop the DebiAI server, you can run the following command:
docker-compose -f docker-compose-build.yml down
To upgrade DebiAI :
git pull
docker-compose -f docker-compose-build.yml up -d
Editing the docker-compose-build.yml file :
version: "3.8"
services:
debiai:
build: .
image: debiai
ports:
- 3000:3000
volumes:
- ./DEBIAI_data:/backend/data
If you want to change the volume folder path, create a folder where you want and replace "./debiai_data" by the path of your folder. Make sure there is nothing not related to DebiAI in the folder because it might be removed.
# Development
If you want to run DebiAI in development mode, you can follow our development setup guide.
The next step is to provide data to DebiAI: Inserting data into DebiAI