README: explain podman usage and publish ports in example

This commit is contained in:
hrj 2023-01-18 20:07:01 +05:30
parent cda8bf6aa5
commit 43291222a2
1 changed files with 8 additions and 1 deletions

View File

@ -47,11 +47,18 @@ docker-compose up
Using `docker`:
```
docker run -v lcdata:/lc-core/data librecaptcha/lc-core:2.0
docker run -p=8888:8888 -v ./lcdata:/lc-core/data librecaptcha/lc-core:2.0
```
A default `config.json` is automatically created in the mounted volume.
The above commands should work with `podman` as well, if docker.io registry is pre-configured. Otherwise,
you can manually specify the repository like so:
```
podman run -p=8888:8888 -v ./lcdata:/lc-core/data docker.io/librecaptcha/lc-core:2.0
```
## Quick test
Open [localhost:8888/demo/index.html](http://localhost:8888/demo/index.html) in browser.