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:
shell
$ docker pull ghcr.io/eosswedenorg/thalos:latest
1
Check that it works by spawning the container and display the version:
sh
$ docker run ghcr.io/eosswedenorg/thalos:latest --version
thalos-server v1.1.1
1
2
2
Using docker compose
Use docker-compose
to spin up a SHIP node, Redis and Thalos all at once.
yaml
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
For more information: docs.docker.com/compose