Skip to content

Commit

Permalink
host network mode for avago (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez authored Aug 29, 2024
1 parent 5bc339d commit 6aca522
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
14 changes: 3 additions & 11 deletions node/templates/avalanchego.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ services:
ports:
- "9650:9650"
- "9651:9651"
networks:
- avalanchego_net
network_mode: "host"
{{ end }}
{{ end }}

{{if .WithMonitoring}}
promtail:
image: grafana/promtail:3.0.0
Expand All @@ -48,8 +48,6 @@ services:
volumes:
- /home/ubuntu/.avalanchego/logs:/logs:ro
- /home/ubuntu/.avalanche-cli/services/promtail:/etc/promtail:ro
networks:
- avalanchego_net
{{ end }}
node-exporter:
image: prom/node-exporter:v1.7.0
Expand All @@ -68,20 +66,14 @@ services:
{{if .E2E }}
networks:
- avalanchego_net_{{.E2ESuffix}}
{{ else }}
networks:
- avalanchego_net
{{ end }}
{{ end }}
{{end}}

{{if .E2E }}
volumes:
avalanchego_data_{{.E2ESuffix}}:
avalanchego_logs_{{.E2ESuffix}}:
networks:
avalanchego_net_{{.E2ESuffix}}:
{{ else }}
networks:
avalanchego_net:
{{ end }}

5 changes: 1 addition & 4 deletions node/templates/awmrelayer.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ services:
container_name: awm-relayer
restart: unless-stopped
user: "1000:1000" # ubuntu user
networks:
- avalanchego_net
network_mode: "host"
volumes:
- /home/ubuntu/.avalanche-cli/services/awm-relayer:/.awm-relayer:rw
command: 'awm-relayer --config-file /.awm-relayer/awm-relayer-config.json'
networks:
avalanchego_net:
11 changes: 0 additions & 11 deletions node/templates/monitoring.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ services:
- '--storage.tsdb.path=/var/lib/prometheus'
links:
- node-exporter
networks:
- monitoring_net

grafana:
image: grafana/grafana:10.4.1
Expand All @@ -31,8 +29,6 @@ services:
links:
- prometheus
- loki
networks:
- monitoring_net

loki:
image: grafana/loki:3.0.0
Expand All @@ -45,21 +41,14 @@ services:
volumes:
- /home/ubuntu/.avalanche-cli/services/loki:/etc/loki:ro
- /home/ubuntu/.avalanche-cli/services/loki/data:/var/lib/loki:rw
networks:
- monitoring_net

node-exporter:
image: prom/node-exporter:v1.7.0
container_name: node-exporter
restart: unless-stopped
ports:
- "9100:9100"
networks:
- monitoring_net
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro

networks:
monitoring_net:

0 comments on commit 6aca522

Please sign in to comment.