-
Notifications
You must be signed in to change notification settings - Fork 0
/
swarmpit.yml
67 lines (63 loc) · 1.31 KB
/
swarmpit.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
version: '3.3'
services:
app:
image: swarmpit/swarmpit:latest
environment:
- SWARMPIT_DB=http://db:5984
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 5001:8080
networks:
- swarmpit_net
deploy:
resources:
limits:
cpus: '0.50'
memory: 1024M
reservations:
cpus: '0.25'
memory: 512M
placement:
constraints:
- node.role == manager
replicas: 2
db:
image: couchdb:2.3.0
volumes:
- /home/docker/data/swarmpitdb/opt/couchdb/data:/opt/couchdb/data
networks:
- swarmpit_net
deploy:
replicas: 2
resources:
limits:
cpus: '0.30'
memory: 512M
reservations:
cpus: '0.15'
memory: 256M
placement:
constraints:
- node.role == manager
agent:
image: swarmpit/agent:latest
environment:
- DOCKER_API_VERSION=1.35
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- swarmpit_net
deploy:
mode: global
resources:
limits:
cpus: '0.10'
memory: 64M
reservations:
cpus: '0.05'
memory: 32M
networks:
swarmpit_net:
driver: overlay
attachable: true