This project provides a configuration file with the essential settings for deploying Portainer and Portainer Agent using Docker Compose.
The docker-compose.yml
file contains the following services:
-
agent
: This service runs the Portainer Agent using theportainer/agent
Docker image. It mounts the host's Docker socket and volumes into the container. -
portainer
: This service runs Portainer itself using theportainer/portainer-ce
Docker image. It publishes port 9000 on the host and mounts the host's Docker socket and a named volume for persistent data storage.
-
Clone the repository:
git clone aviolaris/dockerized-portainer-with-agent
-
Deploy the Portainer and Portainer Agent containers:
docker-compose up -d
-
Access Portainer by opening a web browser and navigating to
http://localhost:9000
. If you are running Docker on a remote machine, replacelocalhost
with the IP address or hostname of the machine. -
Follow the Portainer setup wizard to configure your administrator account and connect to your Docker environment.
Any trademarks, names, logos, icons, or other intellectual property displayed or referenced in this repository are the exclusive property of their respective owners. The inclusion or mention of such trademarks, names, logos, icons, or other intellectual property in no way implies any form of affiliation, endorsement, sponsorship, or support.
This project is licensed under the MIT License.