Skip to content

Commit

Permalink
docs: dev purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
henri9813 committed Apr 18, 2021
1 parent c0fd46b commit d7fa026
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ docker-compose up
> Comment the `build` line
`grafana-dashboard.json` contain a dashboard you can import into the Grafana.

## Developpement

You can use the `docker-compose.dev.yaml` for development purpose and test

```
docker-compose -f docker-compose.dev.yaml up
```
23 changes: 23 additions & 0 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3'

services:
app:
image: golang:1.16-alpine
working_dir: /poloniex-graph
command: go run .
volumes:
- ".:/poloniex-graph"
env_file:
- .env
influxdb:
image: influxdb:1.8.0
env_file:
- .env
volumes:
- ./data/influxdb:/var/lib/influxdb
grafana:
image: grafana/grafana
ports:
- 3000:3000
environment:
GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
4 changes: 0 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ version: '3'
services:
app:
image: henri9813/poloniex-graph
working_dir: /poloniex-graph
command: go run .
volumes:
- ".:/poloniex-graph"
env_file:
- .env
influxdb:
Expand Down

0 comments on commit d7fa026

Please sign in to comment.