-
Notifications
You must be signed in to change notification settings - Fork 80
/
compose.yml
91 lines (83 loc) · 1.75 KB
/
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
90
91
version: '3.8'
services:
swirl:
image: cuigh/swirl
environment:
DB_ADDRESS: mongodb://<database_address>
DOCKER_ENDPOINT: tcp://swirl_manager_agent:2375
AGENTS: swirl_manager_agent,swirl_worker_agent
networks:
- net
ports:
- "8001:8001"
deploy:
replicas: 2
placement:
constraints: [ node.role == worker ]
manager_agent:
image: cuigh/socat
networks:
- net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
placement:
constraints: [ node.role == manager ]
worker_agent:
image: cuigh/socat
networks:
- net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
placement:
constraints: [ node.role == worker ]
# prometheus:
# image: prom/prometheus
# networks:
# - net
# volumes:
# - prometheus:/prometheus
# configs:
# - source: prometheus.yml
# target: /etc/prometheus/prometheus.yml
# deploy:
# replicas: 1
# placement:
# constraints: [ node.labels.app.prometheus == true ]
# cadvisor:
# image: gcr.io/cadvisor/cadvisor
# networks:
# - net
# volumes:
# - /:/rootfs:ro
# - /dev/disk/:/dev/disk:ro
# - /sys:/sys:ro
# - /var/run:/var/run:ro
# - /var/lib/docker:/var/lib/docker:ro
# privileged: true
# deploy:
# mode: global
#
# node:
# image: quay.io/prometheus/node-exporter
# command:
# - '--path.rootfs=/host'
# networks:
# - host
# pid: host
# volumes:
# - /:/host:ro,rslave
# deploy:
# mode: global
#volumes:
# prometheus:
#configs:
# prometheus.yml:
# external: true
networks:
# host:
# external: true
net: