Skip to content

Installer OctoBot avec Docker en vidéo

Après l'installation, OctoBot démarre en node mode et ouvre son interface node. Depuis celle-ci, vous pouvez :

  • Lancer des automatisations configurées et suivies depuis la nouvelle interface OctoBot ou l'application mobile (recommandé pour la plupart des utilisateurs).
  • Lancer des OctoBots manuels avec leur propre interface, une configuration plus avancée et le moteur de backtesting (pour les utilisateurs experts).

Consultez le guide de démarrage pour les étapes complètes.

Pour les systèmes d’exploitation UNIX uniquement

Installation rapide

  • Dans ce terminal, entrez la commande pour installer les paquets nécessaires :
sudo apt install git build-essential ca-certificates curl gnupg lsb-release -y
  • Ensuite, entrez la commande pour installer Docker :
curl -fsSL https://get.docker.com -o get-docker.sh
sh ./get-docker.sh
  • Téléchargez ensuite le fichier docker-compose d’OctoBot :
curl -fs https://raw.githubusercontent.com/Drakkar-Software/OctoBot/master/docker-compose.yml -o docker-compose.yml
  • Démarrez OctoBot avec le fichier docker-compose précédemment téléchargé :
docker compose up -d
  • Une fois la commande terminée, lancer la commande suivante.
sudo usermod -aG docker $USER

Installation manuelle

Utiliser l’image stable:

  1. Download OctoBot
docker pull drakkarsoftware/octobot:stable
  1. Start OctoBot (for linux x64/x86 and raspberry linux arm64/arm32)
docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable

Utiliser l’image “latest” (instabilité possible):

  1. Download OctoBot latest
docker pull drakkarsoftware/octobot:latest
  1. Start OctoBot (for linux x64/x86 and raspberry linux arm64/arm32)
docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:latest

Comment obtenir les logs console d’OctoBot ?

docker logs OctoBot -f

Comment arrêter OctoBot ?

docker stop OctoBot

Comment relancer OctoBot ?

docker restart OctoBot

Comment mettre à jour OctoBot ?

docker pull drakkarsoftware/octobot:stable
docker stop OctoBot
docker rm OctoBot
docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable

Exécution avec docker-compose

A simple way to run a docker image is to use docker-compose :

  • Install docker-compose

  • Download the docker-compose.yml file

  • Create a .env file in the current folder

  • Add HOST=YOUR_IP_ADDRESS in the newly created .env file. (where YOUR_IP_ADDRESS is the ip address of the computer, can be replaced by localhost if it’s a local computer)

  • Start OctoBot with docker-compose (with the previous file docker-compose.yml in the current folder):

    docker-compose up -d

You can now open the OctoBot web interface at https://YOUR_IP_ADDRESS.

Exécuter plusieurs OctoBots avec docker

To run a second OctoBot on the same computer :

  1. Create a new directory and enter it
  2. Start OctoBot’s web interface on a new port by changing “-p” option
docker run -itd --name OctoBot -p 8000:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable

In this example, the second OctoBot’s web interface is accessible at http://127.0.0.1:8000.

Any port can be used except those already used by another OctoBot or any software on your system.

Exécuter OctoBot avec des fichiers managés par Docker

Warning: It’s easier to use but it will not be possible to update it without deleting its files.

-v arguments can be removed from previous start commands but OctoBot’s local files will then be managed by docker (and not directly visible).

docker run -itd --name OctoBot -p 80:5001 drakkarsoftware/octobot:stable

Local OctoBot files path are located in /var/lib/docker and can be listed with the following command

docker inspect -f '{{ .Mounts }}' OctoBot

To copy files of a directory outside the OctoBot container, for example for logs files :

docker cp OctoBot:/octobot/logs/. .

Wherer “OctoBot” is your container name