1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos-docs synced 2026-06-16 04:34:55 +02:00
thalos-docs/docs/installation/docker.md

1.6 KiB

Docker

Do you want to run Thalos in a container? No problem as Thalos provides official docker images to get you going in no time.

The images can be found here

Download the latest image:

$ docker pull ghcr.io/eosswedenorg/thalos:latest

Check that it works by spawning the container and display the version:

$ docker run ghcr.io/eosswedenorg/thalos:latest --version
thalos-server v1.1.1

Using docker compose

Use docker-compose to spin up a SHIP node, Redis and Thalos all at once.

services:
  thalos:
    image: ghcr.io/eosswedenorg/thalos:latest
    depends_on:
      - redis
      - ship
    # pass arguments to thalos.
    command: [
      "--redis-addr=redis:6379",
      "--url=http://ship:80",
      "--ship-url=http://ship:8080"
    ]
    # or mount a config file
    #volumes:
    #  - ./thalos.yml:/thalos/config.yml

  # Redis service
  redis:
    image: redis:alpine
    # mount a custom redis config if you need.
    #command: /etc/redis/redis.conf
    #volumes:
    #  - ./redis.conf:/etc/redis/redis.conf

  # Ship node. make sure you have your config files in ./nodeos/config
  #
  # more documentation here: https://hub.docker.com/r/wecandev/waxblockchain
  ship:
    image: wecandev/waxblockchain:v4.0.4wax01
    expose:
      - 8888
      - 8080
    volumes:
      - ./nodeos/data:/root/.local/share/eosio/nodeos/data
      - ./nodeos/config:/root/.local/share/eosio/nodeos/config

For more information: docs.docker.com/compose