adding portainer agent instead of exposing socket
parent
f6274e8c06
commit
f3c8366878
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
portainer_version: 2.18.3
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
portainer_agent_version: 2.18.3
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- name: Portainer Agent
|
||||||
|
community.docker.docker_compose:
|
||||||
|
project_name: portainer_agent
|
||||||
|
definition:
|
||||||
|
version: '3.3'
|
||||||
|
services:
|
||||||
|
agent:
|
||||||
|
ports:
|
||||||
|
- '9001:9001'
|
||||||
|
container_name: portainer_agent
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
- '/var/lib/docker/volumes:/var/lib/docker/volumes'
|
||||||
|
image: 'portainer/agent:{{ portainer_agent_version }}'
|
||||||
Loading…
Reference in New Issue