A Docker Compose container setup for the Portainer Agent.
-
Requirements
- Docker
- Docker Compose
-
Add environment variables
Add the missing information for the environment variables:
nano .env
Mark the
.env
file so it's not tracked by git:git update-index --assume-unchanged .env
-
Start container
docker-compose up -d
-
Stop container
docker-compose down