Add portainer agent

This commit is contained in:
JuliusFreudenberger 2022-02-08 20:54:05 +01:00
parent a45814e18c
commit 37dd702c66
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# portainer-agent
A centralized service delivery platform for containerized apps.
This is the edge agent which connects to the main portainer instance.
## Important step when deploying
This service can obiously not be deployed using portainer.
So this service needs to be deployed manually using docker compose.

View file

@ -0,0 +1,20 @@
version: "3"
services:
portainer-agent:
image: portainer/agent:2.11.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
- /:/host
- portainer_agent_data:/data
environment:
- EDGE=1
- EDGE_ID=id # set to edge id from portainer ui
- EDGE_KEY=key # set to edge key from portainer ui
- CAP_HOST_MANAGEMENT=1
# - EDGE_INSECURE_POLL=1 # enable this to trust self-signed ssl certificates
volumes:
portainer_agent_data: