From 1da152c67c4aefa0c2f9835af019d047eb3353d3 Mon Sep 17 00:00:00 2001 From: hpl Date: Fri, 6 Dec 2024 18:16:53 +0100 Subject: [PATCH] init agent portainer --- dockers/portainer_agent/docker-compose.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dockers/portainer_agent/docker-compose.yml diff --git a/dockers/portainer_agent/docker-compose.yml b/dockers/portainer_agent/docker-compose.yml new file mode 100644 index 0000000..d702b61 --- /dev/null +++ b/dockers/portainer_agent/docker-compose.yml @@ -0,0 +1,17 @@ +services: + edge_agent: + image: portainer/agent:latest + environment: + - EDGE=1 + - CAP_HOST_MANAGEMENT=1 + - PORTAINER_URL=https://portainer.kaz.bzh + env_file: + - ../../secret/env-portainer-agent + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /var/lib/docker/volumes:/var/lib/docker/volumes + - portainer_agent_data:/data + network_mode: "host" + +volumes: + portainer_agent_data: