Skip to content

🐳 Portainer is a tool that simplifies the management and maintenance of Docker’s containers. A simple setup to deploy Portainer using docker-compose

Notifications You must be signed in to change notification settings

tanhongit/portainer-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Portainer Docker Compose

Portainer is a tool that simplifies the management and maintenance of Docker’s containers. A simple setup to deploy Portainer using docker compose.

Portainer Source

Requirements

Clone this repository

Run:

git clone git@github.com:tanhongit/portainer-docker.git
cd portainer-docker

Copy .env.example to .env

cp .env.example .env

Modify env values in .env file

Change APP_NAME and APP_PORT accordingly

Or using default values:

APP_NAME=portainer
APP_PORT=9001

Setup

Run:

docker compose up -d

Check the network ID

Run:

docker ps

Check the Container ID of APP_NAME-docker.

Run the command:

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container ID>

<container ID>: Use the Container ID of APP_NAME-docker

You will get the IP address of this Container.

Usage

You can then access Portainer by using the IP address that you got it in step 4 over port 9000 with a web browser.

Example:

If the IP address is 172.18.0.2, you can access Portainer by using the URL http://172.18.0.2:9000.

About

🐳 Portainer is a tool that simplifies the management and maintenance of Docker’s containers. A simple setup to deploy Portainer using docker-compose

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published