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: README.md
+118Lines changed: 118 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,124 @@ Note that the API/web admin password is also used for preventing CSRF attacks, s
140
140
You should review the [documentation on usernames](doc/usernames.md) next.
141
141
Once you have everything running, you can point miners at the Gateway.
142
142
143
+
## Docker
144
+
145
+
The DATUM Gateway is also available as a Docker image.
146
+
147
+
148
+
### Building the Docker Image
149
+
150
+
To build the DATUM Gateway Docker image:
151
+
152
+
```bash
153
+
# From the root of the repository
154
+
docker build -t datum_gateway .
155
+
```
156
+
157
+
### Running the Container
158
+
159
+
To run the DATUM Gateway container:
160
+
161
+
```bash
162
+
# Run with default configuration
163
+
docker run -p 23334:23334 -p 7152:7152 --name datum-gateway datum_gateway
164
+
```
165
+
166
+
The container expects a configuration file at `/app/config/config.json`. Mount a volume to this path to use your own configuration:
167
+
168
+
```bash
169
+
docker run -v /path/to/your/config/directory:/app/config -p 23334:23334 -p 7152:7152 datum_gateway
170
+
```
171
+
172
+
You will need to disable the notify fallback in your configuration file if you are using Docker. And in bitcoin.conf, you will need to set the following:
When running the DATUM Gateway in Docker, you need to configure it to connect to your Bitcoin node. The connection method depends on where your Bitcoin node is running:
181
+
182
+
#### 1. Bitcoin Node Running in Docker (Same Network)
183
+
184
+
If your Bitcoin node is also running in a Docker container on the same network, use the container name as the hostname:
185
+
186
+
```json
187
+
{
188
+
"rpc_host": "bitcoin-node",
189
+
"rpc_port": 8332,
190
+
"rpc_user": "your_rpc_user",
191
+
"rpc_pass": "your_rpc_password"
192
+
}
193
+
```
194
+
195
+
In your `bitcoin.conf`, set the blocknotify to use the DATUM Gateway container name:
0 commit comments