- Docker needs to be installed - Don't know how? Follow our guide
Through this whole thing I am going to assume you are using Linux. If you are not, the commands can be easily modified
-
Download our docker-compose.yml file here
Or alternatively
curlthe filecurl https://raw.githubusercontent.com/Ruby-Network/ruby/main/docker/docker-compose.yml > docker-compose.ymlOr with
wgetwget https://raw.githubusercontent.com/Ruby-Network/ruby/main/docker/docker-compose.yml
Or just copy this config:
version: "3" services: ruby: image: 'motortruck1221/ruby:latest' container_name: ruby restart: unless-stopped ports: # DO NOT CHANGE 9293 - "your port here:9293" volumes: - ./config.yml:/usr/src/app/config/settings.yml # Uncomment the following lines if you want to use a database (multiuser mode) #db: # image: postgres # restart: unless-stopped # environment: # POSTGRES_PASSWORD: ruby # POSTGRES_USER: ruby # POSTGRES_DB: ruby # volumes: # - ./db:/var/lib/postgresql/data # Uncomment the following lines if you want to use adminer (database management) #adminer: # image: adminer # restart: unless-stopped # ports: # - 8099:8080
-
Download our settings.example.yml file here
Or alternatively curl the file
curl https://github.com/Ruby-Network/ruby/raw/main/config/settings.example.ymlOr with wget
wget https://github.com/Ruby-Network/ruby/raw/main/config/settings.example.ymlOr just copy this config:
port: 9293
verboseLogging: "false"
private: "false"
username: "ruby"
password: "ruby"
mainURL: "http://localhost:9293/"- Rename the settings.example.yml to config.yml
mv settings.example.yml config.yml- change the
your port hereto a port on your machine
Simply run
docker compose up -dand voila it should be running!
- Git
git clonethe repo
git clone https://github.com/ruby-network/ruby --recursive- Copy docker-compose.build.yml to the main folder
cp docker/docker-compose.build.yml ./docker-compose.yml- Copy the Docker file to the main folder
cp docker/Dockerfile .- Copy the settings.example.yml file to the main folder
cp config/settings.example.yml ./config.yml- Edit the
your port hereto a port that is available on your machine
- After setting up the repo properly run
docker build && docker compose up -d- It should build the docker image and execute it starting the app!
THIS IS NOT RECOMMENDED
- Download the settings.example.yml file here
Alternatively curl the file
curl https://github.com/Ruby-Network/ruby/raw/main/config/settings.example.ymlOr with wget
wget https://github.com/Ruby-Network/ruby/raw/main/config/settings.example.ymlOr just copy this config:
port: 9293
verboseLogging: "false"
private: "false"
username: "ruby"
password: "ruby"
mainURL: "http://localhost:9293/"- Rename it to config.yml
mv settings.example.yml config.yml- Run the command
docker run -d -p <your port here>:9293 --restart unless-stopped --name ruby -v ./config.yml:/usr/src/app/config/settings.yml ghcr.io/ruby-network/ruby