Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spike/custom metrics #9

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
AUTH_TOKEN=dummyToken
REDIS_HOST=redis://cache
AUTH_TOKEN='dummyToken'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that ' is needed

REDIS_HOST=redis://cache
79 changes: 75 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,52 @@
---
version: '3'
services:
app:
app1:
build: .
image: notification-service:latest
container_name: app
container_name: app1
working_dir: /var/app
user: root
ports:
- 3000:3000
- 3001:3000
volumes:
- ./:/var/app
networks:
- adorsys
command: ["npm", "run", "first-start"]
env_file:
- .env
links:

app2:
build: .
image: notification-service:latest
container_name: app2
working_dir: /var/app
user: root
ports:
- 3002:3000
volumes:
- ./:/var/app
networks:
- adorsys
command: ["npm", "run", "first-start"]
env_file:
- .env

app-testing:
depends_on:
- redis
- app1
- app2
image: notification-service:latest
working_dir: /var/app
volumes:
- ./:/var/app
env_file:
- .env
networks:
- adorsys
command: ["npm", "run", "start"]

redis:
image: redis:5.0.6
Expand All @@ -30,6 +59,48 @@ services:
networks:
- adorsys

prometheus:
image: prom/prometheus:latest
volumes:
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- '9090:9090'
networks:
- adorsys

node-exporter:
image: prom/node-exporter:latest
ports:
- '9100:9100'
networks:
- adorsys

redis_exporter:
image: oliver006/redis_exporter:latest
environment:
- REDIS_ADDR=redis://cache
ports:
- '9121:9121'
networks:
- adorsys

grafana:
image: grafana/grafana:latest
volumes:
- ./docker/grafana/dashboards:/var/lib/grafana/dashboards
- ./docker/grafana/provisioning/dashboards/all.yml:/etc/grafana/provisioning/dashboards/all.yml
- ./docker/grafana/provisioning/datasources/all.yml:/etc/grafana/provisioning/datasources/all.yml
environment:
- GF_SECURITY_ADMIN_PASSWORD=password123
depends_on:
- prometheus
ports:
- '3000:3000'
networks:
- adorsys

networks:
adorsys:
driver: bridge
Loading