-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-stack.support.yml
More file actions
35 lines (33 loc) · 1.17 KB
/
docker-stack.support.yml
File metadata and controls
35 lines (33 loc) · 1.17 KB
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
---
# support stack (private registry and visualizer services)
# $ docker stack deploy -c docker-stack.support.yml support-stack
version: '3.8'
services:
# The registry service is only needed when running in a swarm stack
registry:
image: registry:2
ports:
- "5000:5000"
volumes:
- "registry-data:/var/lib/registry"
deploy:
placement:
constraints: [node.labels.registry == true]
# The visualizer was useful when we first started deploying to swarms and the swarms
# had multiple nodes. Now that we've been running the swarm on a single instance
# the visualizer isn't useful. In addition it hasn't been maintained and probably is
# has some security issues. Therefore I'm commenting it out, leaving it just in case
# we want to revive running it for some scenario. - mjl 2021-04-19
# # The visualizer service is only needed when running in a swarm stack
# visualizer:
# image: dockersamples/visualizer:stable
# ports:
# - "8080:8080"
# stop_grace_period: 1m30s
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock"
# deploy:
# placement:
# constraints: [node.role == manager]
volumes:
registry-data: