-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (83 loc) · 2.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.8"
services:
graph:
container_name: redisgraph
image: redislabs/redisgraph
ports:
- "6379:6379"
restart: on-failure
volumes:
- graph:/data
app:
container_name: ipfs-replicate
build: .
restart: on-failure
volumes:
- ./data:/app/data
- ./logs:/app/logs
- ./events:/app/events
env_file:
- ./.env
command: ["./ipfs_replicate", "--log-events", "--log-output"]
depends_on:
- kubo-mexport
- graph
network_mode: "host"
rabbitmq:
container_name: rabbitmq
image: "rabbitmq:3.10"
restart: unless-stopped
hostname: rmq
expose:
- 15692
# Healthcheck from https://devops.stackexchange.com/questions/12092/docker-compose-healthcheck-for-rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q status
interval: 30s
timeout: 30s
retries: 3
volumes:
- ./ipfs-metric-exporter/docker-compose/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./ipfs-metric-exporter/docker-compose/rabbitmq.advanced.config:/etc/rabbitmq/advanced.config
- ./ipfs-metric-exporter/docker-compose/rabbitmq-definitions.json:/etc/rabbitmq/definitions.json
- rabbitmq_data:/var/lib/rabbitmq/mnesia/rabbit@rmq
- rabbitmq_logs:/var/log/rabbitmq/log
ports:
- "5672:5672"
kubo-mexport:
container_name: kubo-mexport
hostname: 'docker_compose_monitor_01'
image: "ghcr.io/trudi-group/kubo-mexport:latest"
restart: unless-stopped
depends_on:
rabbitmq:
condition: service_healthy
links:
- rabbitmq
volumes:
- ipfs_01_path:/data/ipfs
- ./ipfs-metric-exporter/docker-compose/001_configure_ipfs.sh:/container-init.d/001_configure_ipfs.sh
ports:
- "4001:4001/tcp"
- "4001:4001/udp"
node-exporter:
container_name: node-exporter
image: prom/node-exporter:v1.4.0
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
expose:
- 9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
volumes:
graph:
driver: local
ipfs_01_path:
rabbitmq_data:
rabbitmq_logs: