Run Witnet as a docker-compose service

Prerequisites

  • Install the current stable release of Docker Compose:
1
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2
sudo chmod +x /usr/local/bin/docker-compose
3
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Copied!
  • Install the current stable release of parallel:
1
sudo apt install parallel
2
parallel --citation
Copied!
  • Test the installation of Docker Compose:
1
docker-compose --version
Copied!
  • Clone the project's GitHub repository into your home directory:
1
cd
2
git clone https://github.com/witnet/witnet-operator-tools.git
Copied!

Go in the directory you are interested in

for only one node

1
cd witnet-operator-tools/docker/compose/bertux-operator-stable/
Copied!

for several nodes (example: 5)

1
cd witnet-operator-tools/docker/compose/bertux-operator-5/
Copied!

Usage of docker-compose

  • Start up the service:
1
docker-compose up -d
Copied!
  • Follow the logs of the service:
1
docker-compose logs -f
Copied!
  • When you want to stop the service:
1
docker-compose stop
Copied!
  • When you want to remove the service:
1
docker-compose down
Copied!
  • Every time you change the docker-compose.yaml file, you need to recreate the services by docker-compose:
1
docker-compose down
2
docker-compose up -d
Copied!