Skip to content

Commit

Permalink
Add basic docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Jul 26, 2023
1 parent b15c0ec commit 9bc8883
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ ex_turn-*.tar
# Temporary files, for example, from tests.
/tmp/

.elixir_ls/
.elixir_ls/

/grafana_data
28 changes: 20 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
version: '3.2'
services:
ex_turn:
build: .
network_mode: "host"





prometheus:
image: "ubuntu:latest"

image: "prom/prometheus:v2.46.0"
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- ex_turn

# grafana:

grafana:
image: "grafana/grafana:10.0.3"
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- "./grafana_data:/var/lib/grafana"
depends_on:
- prometheus
2 changes: 1 addition & 1 deletion prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ scrape_configs:
scrape_interval: 1s

static_configs:
- targets: ['127.0.0.1:9568']
- targets: ['host.docker.internal:9568']

0 comments on commit 9bc8883

Please sign in to comment.