ansible-on-prem/roles/docker/swarm/stacks/templates/nouse_portainer-compose.j2
2025-07-16 17:14:16 -06:00

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