forked from flavioaiello/swarm-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswarm.yml
63 lines (59 loc) · 1.21 KB
/
swarm.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
version: '3.2'
services:
swarm-router:
image: swarm-router:latest
environment:
- HTTP_BACKENDS_PORT=portainer:9000 nexus:8081 swarm-router:1111 whoami:8000
ports:
- "80:80"
- "8080:8080"
- "443:443"
- "8443:8443"
- "1111:1111"
networks:
default:
routing:
deploy:
resources:
reservations:
cpus: '0.5'
memory: 128M
limits:
memory: 128M
mode: replicated
replicas: 1
restart_policy:
condition: any
portainer:
image: portainer/portainer
depends_on:
- swarm-router
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --no-auth -H unix:///var/run/docker.sock
ports:
- "9000:9000"
networks:
default:
aliases:
- portainer.localtest.me
deploy:
resources:
reservations:
cpus: '0.1'
memory: 128M
limits:
cpus: '1.00'
memory: 128M
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 10
networks:
default:
driver: overlay
routing:
driver: overlay
attachable: true