Run an OlaOS Node

Run database in docker

OlaOS relies on the local Postgres database as the underlying persistence layer. The database needs to be started before running the node. It is recommended to use a docker container to run the database.

$ cd dal && ./scripts/init_db.sh

The init_db script will check whether sql and sqlx have been installed, then configure the database name, port and other information, and start the database in a docker container. When the database is started successfully, the script will use sqlx to automatically migrate all database operations.

Run OlaOS in docker

Compile docker image for OlaOS:

docker build --tag ola_node --file Dockerfile .

Run the generated docker image:

docker run -p 13002:13002 -p 13000:13000 ola_node

Last updated