Skip to content

Commit a322164

Browse files
authored
Update README docker section
1 parent 9ba23cc commit a322164

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ $ nanopos --items-path items.yaml --charge-token mySecretToken --currency USD
2828
HTTP server running on localhost:9116
2929
```
3030

31-
## Running from Docker
31+
## Running with Docker
3232

33-
Nanopos includes a Dockerfile and .dockerignore to allow for fast setup and running from a docker container based on node:carbon. To run from the container with port 9112 and port 9116 exposed, first build the image with:
33+
Nanopos includes a Dockerfile to allow for fast setup using a docker container based on node:carbon. To run from the container with port 9116 exposed, first setup [Lightning Charge](https://github.com/ElementsProject/lightning-charge), then build the image with:
3434

35+
```bash
36+
$ docker build -t elements_project/nanopos .
3537
```
36-
docker build -t elements_project/nanopos .
37-
```
38-
and then run with
39-
```
40-
docker run -p9116:9116 -d elements_project/nanopos
38+
39+
and then run with:
40+
41+
```bash
42+
$ docker run -p9116:9116 -e CHARGE_URL=http://[charge-url]/ -e CHARGE_TOKEN=[access-token] elements_project/nanopos
4143
```
4244

4345
That's it! The web server should now be running on port 9116 and ready to accept payments.

0 commit comments

Comments
 (0)