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/self-hosting/README.md
+22-18
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ mkdir openblocks
22
22
cd openblocks
23
23
```
24
24
25
-
## Docker-Compose (Recommend)
26
-
27
-
### Deploy
25
+
## Deploy
28
26
27
+
{% tabs %}
28
+
{% tab title="Docker-Compose (Recommend)" %}
29
29
Follow the steps below:
30
30
31
31
1. Download the configuration file by clicking [docker-compose.yml](https://cdn-files.openblocks.dev/docker-compose.yml) or running the curl command: `curl https://cdn-files.openblocks.dev/docker-compose.yml -o $PWD/docker-compose.yml`
1. Stop the firewall from blocking access from <markstyle="background-color:yellow;">**`docker0`**</mark> by typing in the terminal:\ <markstyle="background-color:blue;"></mark><markstyle="background-color:yellow;">**`iptables -A INPUT -p tcp -i docker0 --dport YOUR_DB_PORT -j ACCEPT`**</mark>\
31
30
`Note: In this case`Here we use Postgres port <markstyle="background-color:yellow;">**`5432`**</mark> for <markstyle="background-color:yellow;">**`YOUR_DB_PORT`**</mark>, and you should replace it with your own.
32
31
2. Save the firewall configuration by typing in the terminal:\
0 commit comments