28 lines
574 B
Django/Jinja
28 lines
574 B
Django/Jinja
version: '3.9'
|
|
services:
|
|
ui:
|
|
image: 'portainer/portainer-ce:lts'
|
|
volumes:
|
|
- '/docker-shared/stacks/data/portainer:/data'
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
ports:
|
|
- target: 9443
|
|
published: 9443
|
|
protocol: tcp
|
|
mode: ingress
|
|
- target: 8000
|
|
published: 8000
|
|
protocol: tcp
|
|
mode: ingress
|
|
networks:
|
|
- swarmnet
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
networks:
|
|
swarmnet:
|
|
external: true |