Skip to content

Commit

Permalink
feat: add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mhf-ir committed May 10, 2023
1 parent 1d6f8ae commit 159a6e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
For see available options

```bash
docker run --rm ghcr.io/aasaam/ip-info-rest-api:latest -h
docker run --rm ghcr.io/aasaam/ip-info-rest-api:latest run -h
```

## Usage
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
ip-info-rest-api:
image: ghcr.io/aasaam/ip-info-rest-api:latest
container_name: ip-info-rest-api
ports:
- 4000:4000
hostname: ip-info-rest-api
command: run
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func main() {
Usage: "Run server",
Action: runServer,
Flags: []cli.Flag{

&cli.StringFlag{
Name: "listen",
Usage: "Application listen http ip:port address",
Expand Down

0 comments on commit 159a6e3

Please sign in to comment.