-
Notifications
You must be signed in to change notification settings - Fork 1
/
swarmpit.yml
72 lines (72 loc) · 1.51 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
68
69
70
71
72
version: '3.3'
services:
agent:
image: swarmpit/agent:2.2
environment:
DOCKER_API_VERSION: '1.35'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- net
deploy:
mode: global
labels:
swarmpit.agent: 'true'
resources:
reservations:
cpus: '0.05'
memory: 32M
limits:
cpus: '0.1'
memory: 64M
app:
image: swarmpit/swarmpit:1.9
environment:
SWARMPIT_DB: http://db:5984
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- net
- traefik-public
deploy:
labels:
traefik.tags: traefik-public
traefik.docker.network: traefik-public
traefik.enable: 'true'
traefik.port: '8080'
traefik.frontend.rule: PathPrefixStrip:/cluster/swarmpit/
placement:
constraints:
- node.role == manager
resources:
reservations:
cpus: '0.25'
memory: 512M
limits:
cpus: '0.5'
memory: 1024M
db:
image: couchdb:2.3.0
volumes:
- swarmpit_db-data:/opt/couchdb/data
networks:
- net
deploy:
placement:
constraints:
- node.hostname == badwcai-ebl02
resources:
reservations:
cpus: '0.15'
memory: 256M
limits:
cpus: '0.3'
memory: 512M
networks:
net:
driver: overlay
traefik-public:
external: true
volumes:
swarmpit_db-data:
external: true