mirror of
https://github.com/eosswedenorg/thalos-docs
synced 2026-06-16 04:34:55 +02:00
adding docs/installation/docker.md
This commit is contained in:
parent
b1f1ccf8e3
commit
e0b9a5b7da
2 changed files with 68 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ export default defineConfig({
|
|||
},
|
||||
{ text: "Bundled binaries", link: '/docs/installation/#bundled-binaries' },
|
||||
{ text: "Compiling from source", link: '/docs/installation/#compiling-from-source' },
|
||||
{ text: "Docker", link: '/docs/installation/docker' },
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
67
docs/installation/docker.md
Normal file
67
docs/installation/docker.md
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
---
|
||||
|
||||
---
|
||||
|
||||
# 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](https://github.com/eosswedenorg/thalos/pkgs/container/thalos)
|
||||
|
||||
Download the latest image:
|
||||
|
||||
```shell
|
||||
$ docker pull ghcr.io/eosswedenorg/thalos:latest
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
For more information: [docs.docker.com/compose](https://docs.docker.com/compose)
|
||||
Loading…
Add table
Add a link
Reference in a new issue