Code Monkey home page Code Monkey logo

portainer-docker's Introduction

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 [email protected]: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.

portainer-docker's People

Contributors

tanhongit avatar

Watchers

 avatar

Forkers

pxthinh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.