You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/provider/daemon/getting_started/run_docker.md
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,13 @@ title: 'Run with Docker'
3
3
sidebar_position: 2
4
4
---
5
5
6
+
:::tip
7
+
Ensure the server has at least 2GB of available memory, to avoid running into any out of memory exceptions.
8
+
:::
9
+
6
10
The easiest way to serve your daemon as a dockerized application is by using `docker compose` so you can well orchestrate your wallet and daemon instances. You can find a similar version of the following `docker-compose.yml` file in the [github repository](https://github.com/tdex-network/tdex-daemon/tree/v1/resources/compose/docker-compose.yml):
7
11
8
12
```yml
9
-
version: "3.7"
10
-
11
13
services:
12
14
oceand:
13
15
container_name: oceand
@@ -26,8 +28,8 @@ services:
26
28
ports:
27
29
- "18000:18000"
28
30
volumes:
29
-
- volumes/oceand:/home/ocean/.ocean-wallet
30
-
- volumes/ocean-cli:/home/ocean/.ocean-cli
31
+
- ./volumes/oceand:/home/ocean/.ocean-wallet
32
+
- ./volumes/ocean-cli:/home/ocean/.ocean-cli
31
33
tdexd:
32
34
container_name: tdexd
33
35
image: ghcr.io/tdex-network/tdexd:latest
@@ -43,8 +45,8 @@ services:
43
45
- "9000:9000"
44
46
- "9945:9945"
45
47
volumes:
46
-
- volumes/tdexd:/home/tdex/.tdex-daemon
47
-
- volumes/tdex-cli:/home/tdex/.tdex-operator
48
+
- ./volumes/tdexd:/home/tdex/.tdex-daemon
49
+
- ./volumes/tdex-cli:/home/tdex/.tdex-operator
48
50
oceand-db:
49
51
container_name: oceand-db
50
52
image: postgres
@@ -78,13 +80,13 @@ Place this file in your preferred folder and name it `docker-compose.yml`, take
78
80
You're now ready to start up the services. First of all, let's start the ocean services:
79
81
80
82
```bash
81
-
$ docker-compose up -d oceand-db oceand
83
+
$ dockercompose up -d oceand-db oceand
82
84
```
83
85
84
86
You can inspect the status of the service by running `docker ps` - don't be afraid if oceand gives errors at this stage, it can happen depending on how fast the db startup phase is. Once both services are up and running you can start up your provider service:
85
87
86
88
```bash
87
-
$ docker-compose up -d tdexd
89
+
$ dockercompose up -d tdexd
88
90
```
89
91
90
92
That's it! You just started your provider served as docker container. What's next? You can get some insights about [the daemon's configuration](configure_daemon.md), or you can take a look at how to [configure the CLI](configure_cli.md) to setup your markets, deposit and withdraw funds and even more cool stuff.
@@ -40,6 +40,12 @@ $ tdex config set quote_asset f3d1ec678811398cd2ae277cbe3849c6f6dbd72c74bc542f7c
40
40
41
41
All the commands that follow require both `base_asset` and `quote_asset` to be set in your CLI's config file. If you have created multiple markets and you need to switch between them, it's enough to change base and/or quote asset with the `tdex config set` command.
42
42
43
+
:::tip
44
+
You may look up assets hashes available on the liquid network from the following [link](https://liquid.network/assets/featured).
45
+
46
+
Asset hashes will vary between mainnet and testnet, so ensure to accomodate accordingly.
47
+
:::
48
+
43
49
## Deposit funds
44
50
45
51
Just like any other account, let's derive some new addresses to deposit base/quote asset funds to the market:
@@ -131,6 +137,13 @@ Once you're good with your market configuration and the funds are confirmed, you
131
137
$ tdex market open
132
138
```
133
139
140
+
:::caution
141
+
142
+
The market account needs to be funded with both the base and quote assets. Otherwise, trying to retrieve price information or perform swaps will results in errors.
143
+
144
+
:::
145
+
146
+
134
147
## Get trading report
135
148
136
149
You can get a report of the trading activity of your market in a certain time period. This reports includes info like the trading volume and the total amount earned (collected fees).
0 commit comments