mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 07:53:38 +01:00
bec2820969
ref: https://github.com/TwiN/gatus/issues/151#issuecomment-912932934 update all exmaple in docker-compose file. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
43 lines
898 B
YAML
43 lines
898 B
YAML
version: "3.9"
|
|
services:
|
|
gatus:
|
|
container_name: gatus
|
|
image: twinproduction/gatus
|
|
restart: always
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./config:/config
|
|
networks:
|
|
- metrics
|
|
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: prom/prometheus:v2.14.0
|
|
restart: always
|
|
command: --config.file=/etc/prometheus/prometheus.yml
|
|
ports:
|
|
- "9090:9090"
|
|
volumes:
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
networks:
|
|
- metrics
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana:6.4.4
|
|
restart: always
|
|
environment:
|
|
GF_SECURITY_ADMIN_PASSWORD: secret
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./grafana/grafana.ini/:/etc/grafana/grafana.ini:ro
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro
|
|
networks:
|
|
- metrics
|
|
|
|
networks:
|
|
metrics:
|
|
driver: bridge
|