diff --git a/README.md b/README.md index cced4e0..b69d4bd 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml new file mode 100644 index 0000000..bbaf5b1 --- /dev/null +++ b/docker-compose.dev.yaml @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 7b0ccaa..79acbd9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: