-
-
Save kindule/a1fb9bc2c0f293de8c3020747dcfa2c3 to your computer and use it in GitHub Desktop.
docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
fluentd: | |
image: fluent/fluentd:v1.16-1 | |
user: root | |
volumes: | |
- hawkeye-config:/fluentd/etc | |
- /opt/hawkeye/logs:/opt/hawkeye/logs | |
networks: | |
hawkeye: | |
ipv4_address: 177.5.0.50 | |
monitor: | |
image: prometheus:v2.38.0 | |
volumes: | |
- /etc/localtime:/etc/localtime | |
command: | |
- '--config.file=/etc/prometheus/prometheus.yml' | |
- '--web.listen-address=0.0.0.0:9002' | |
- '--log.level=info' | |
- '--storage.tsdb.retention=90d' | |
- '--web.enable-lifecycle' | |
- '--web.enable-admin-api' | |
- '--query.lookback-delta=61m' | |
# ports: | |
# - "9002:9002" | |
links: | |
- notice:notice | |
- pushgateway:pushgateway | |
depends_on: | |
- pushgateway | |
networks: | |
hawkeye: | |
ipv4_address: 177.5.0.17 | |
restart: always | |
logging: | |
driver: "fluentd" | |
options: | |
fluentd-address: 177.5.0.50:24224 | |
fluentd-async-connect: "true" | |
tag: monitor | |
notice: | |
image: alertmanager:v0.24.0 | |
user: root | |
# ports: | |
# - "9003:9003" | |
# - "9004:9004" | |
volumes: | |
- hawkeye-monitor-data:/alertmanager | |
- /etc/localtime:/etc/localtime | |
networks: | |
hawkeye: | |
ipv4_address: 177.5.0.27 | |
restart: always | |
command: | |
- '--config.file=/etc/alertmanager/alertmanager.yml' | |
- '--storage.path=/alertmanager' | |
- '--cluster.advertise-address=0.0.0.0:9004' | |
- '--web.listen-address=:9003' | |
logging: | |
driver: "fluentd" | |
options: | |
fluentd-address: 177.5.0.50:24224 | |
fluentd-async-connect: "true" | |
tag: notice | |
pushgateway: | |
image: pushgateway:v1.4.3 | |
user: root | |
volumes: | |
- /etc/localtime:/etc/localtime | |
restart: always | |
expose: | |
- 9091 | |
depends_on: | |
- fluentd | |
networks: | |
hawkeye: | |
ipv4_address: 177.5.0.37 | |
logging: | |
driver: "fluentd" | |
options: | |
fluentd-address: 177.5.0.50:24224 | |
fluentd-async-connect: "true" | |
tag: monitor | |
sql_exporter: | |
image: sql_exporter:4.2.1 | |
restart: always | |
depends_on: | |
postgresql: | |
condition: service_healthy | |
expose: | |
- 9117 | |
volumes: | |
- hawkeye-logs:/opt/supervisor/logs | |
- /etc/localtime:/etc/localtime | |
networks: | |
hawkeye: | |
ipv4_address: 177.5.0.12 | |
logging: | |
driver: "fluentd" | |
options: | |
fluentd-address: 177.5.0.50:24224 | |
fluentd-async-connect: "true" | |
tag: sql_exporter | |
networks: | |
hawkeye: | |
driver: | |
bridge | |
ipam: | |
config: | |
- subnet: 177.5.0.0/16 | |
gateway: 177.5.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment