Skip to content

Commit

Permalink
remove docker/.env and update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
  • Loading branch information
mteodor committed Jul 2, 2019
1 parent 4918034 commit e75c4c9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 146 deletions.
142 changes: 0 additions & 142 deletions docker/.env

This file was deleted.

9 changes: 5 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ Configure environment variables and run Mainflux Docker Composition.

Follow the [official documentation](https://docs.docker.com/compose/install/).

## Usage

Run following commands from `docker` directory.
## Usage

Run following commands from project root directory.

```
docker-compose up
docker-compose -f docker/docker-compose.yml up
```

```
docker-compose -f addons/<path>/docker-compose.yml up
docker-compose -f docker/addons/<path>/docker-compose.yml up
```

27 changes: 27 additions & 0 deletions writers/postgres/api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// Copyright (c) 2018
// Mainflux
//
// SPDX-License-Identifier: Apache-2.0
//

// +build !test

package postgres

import (
"net/http"

"github.com/go-zoo/bone"
"github.com/mainflux/mainflux"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

// MakeHandler returns a HTTP handler for API endpoints.
func MakeHandler() http.Handler {
r := bone.New()
r.GetFunc("/version", mainflux.Version("postgres-writer"))
r.Handle("/metrics", promhttp.Handler())

return r
}

0 comments on commit e75c4c9

Please sign in to comment.