mirror of https://github.com/portainer/k8s.git
25 lines
491 B
YAML
25 lines
491 B
YAML
version: '3.2'
|
|
|
|
services:
|
|
agent:
|
|
image: portainer/agent:2.27.9
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
ports:
|
|
- target: 9001
|
|
published: 9001
|
|
protocol: tcp
|
|
mode: host
|
|
networks:
|
|
- portainer_agent
|
|
deploy:
|
|
mode: global
|
|
placement:
|
|
constraints: [node.platform.os == linux]
|
|
|
|
networks:
|
|
portainer_agent:
|
|
driver: overlay
|
|
attachable: true
|