diff --git a/portainer_agent/README.md b/portainer_agent/README.md new file mode 100644 index 0000000..6728ab2 --- /dev/null +++ b/portainer_agent/README.md @@ -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. + diff --git a/portainer_agent/docker-compose.yaml b/portainer_agent/docker-compose.yaml new file mode 100644 index 0000000..ec608ee --- /dev/null +++ b/portainer_agent/docker-compose.yaml @@ -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: