Skip to content

Commit

Permalink
Merge pull request #1190 from 1Mark/add_commands_for_docker
Browse files Browse the repository at this point in the history
add docker commands to usage.md; to aid getting started
  • Loading branch information
sundowndev committed Jan 16, 2023
2 parents 8762e7f + bb7d80a commit 77baa69
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/getting-started/usage.md
Expand Up @@ -55,8 +55,15 @@ PhoneInfoga integrates a REST API along with a web client that you can deploy an
See **[API documentation](https://petstore.swagger.io/?url=https://raw.githubusercontent.com/sundowndev/phoneinfoga/master/web/docs/swagger.yaml)**.

```shell
phoneinfoga serve
phoneinfoga serve -p 8080 # default port is 5000
phoneinfoga serve # uses default port 5000
phoneinfoga serve -p 8080 # use port 8080
```

Equivalent commands via docker:

```shell
docker run --rm -it -p 5000:5000 sundowndev/phoneinfoga serve # same as `phoneinfoga serve`
docker run --rm -it -p 8080:8080 sundowndev/phoneinfoga serve -p 8080 # same as `phoneinfoga serve -p 8080`
```

You should then be able to visit the web client from your browser at `http://localhost:<port>`.
Expand All @@ -65,8 +72,14 @@ You should then be able to visit the web client from your browser at `http://loc

**Running the REST API only**

You can choose to only run the REST API without the web client :
You can choose to only run the REST API without the web client:

```
```shell
phoneinfoga serve --no-client
```

Equivalent docker command:

```shell
docker run --rm -it -p 5000:5000 sundowndev/phoneinfoga serve --no-client
```

0 comments on commit 77baa69

Please sign in to comment.