33 lines
687 B
Plaintext
33 lines
687 B
Plaintext
version: '3.9'
|
|
services:
|
|
ui:
|
|
image: 'portainer/portainer-ce:lts'
|
|
container_name: portainer
|
|
volumes:
|
|
- '/docker-shared/stacks/data/portainer:/data'
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
ports:
|
|
- '9443:9443'
|
|
- '8000:8000'
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
labels:
|
|
{% for labels in swarm_nodes %}
|
|
{% for key, val in labels %}
|
|
{{ key }}: "{{ val }}"
|
|
{% endfor %}
|
|
{% endfor %}
|
|
placement:
|
|
constraints:
|
|
{% for constraints in swarm_nodes %}
|
|
{% for constraint in constraints %}
|
|
- {{ constraint }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
networks:
|
|
- swarm-core
|
|
|
|
networks:
|
|
swarm-core:
|