mirror of
https://github.com/Maronato/go-finger.git
synced 2025-03-15 08:44:46 +00:00
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
4f05b73bec |
1 changed files with 234 additions and 220 deletions
18
README.md
18
README.md
|
@ -70,8 +70,10 @@ go install git.maronato.dev/maronato/finger@latest
|
||||||
Via Docker:
|
Via Docker:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name finger /
|
docker run \
|
||||||
-p 8080:8080 /
|
--name finger \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v ${PWD}/fingers.yml:/app/fingers.yml \
|
||||||
git.maronato.dev/maronato/finger
|
git.maronato.dev/maronato/finger
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -203,6 +205,18 @@ Here are the config options available. You can change them via command line flag
|
||||||
| `-u, --urn-file` | `WF_URN_FILE` | `urns.yml` | Path to the URNs alias file |
|
| `-u, --urn-file` | `WF_URN_FILE` | `urns.yml` | Path to the URNs alias file |
|
||||||
| `-d, --debug` | `WF_DEBUG` | `false` | Enable debug logging |
|
| `-d, --debug` | `WF_DEBUG` | `false` | Enable debug logging |
|
||||||
|
|
||||||
|
### Docker config
|
||||||
|
If you're using the Docker image, you can mount your `fingers.yml` file to `/app/fingers.yml` and the `urns.yml` to `/app/urns.yml`.
|
||||||
|
|
||||||
|
To run the docker image with flags or a different command, specify the command followed by the flags:
|
||||||
|
```bash
|
||||||
|
# Start the server on port 3030 in debug mode with a different fingers file
|
||||||
|
docker run git.maronato.dev/maronato/finger serve --port 3030 --debug --finger-file /app/my-fingers.yml
|
||||||
|
|
||||||
|
# or run a healthcheck on a different finger container
|
||||||
|
docker run git.maronato.dev/maronato/finger healthcheck --host otherhost --port 3030
|
||||||
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
You need to have [Go](https://golang.org/) installed to build the project.
|
You need to have [Go](https://golang.org/) installed to build the project.
|
||||||
|
|
Loading…
Add table
Reference in a new issue