Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tanhongit/portainer-docker

:whale: Portainer is a tool that simplifies the management and maintenance of Docker’s containers. A simple setup to deploy Portainer using docker-compose
https://github.com/tanhongit/portainer-docker

compose composer-installer docker docker-compose dockerfile env portainer portainer-docker

Last synced: 29 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/portainer/portainer)

## Requirements
- Install [Docker](https://docker.io/)
- Install [Docker Compose](https://docs.docker.com/compose/install/)

## Clone this repository

Run:

```bash
git clone [email protected]:tanhongit/portainer-docker.git
cd portainer-docker
```

## Copy .env.example to .env

```bash
cp .env.example .env
```

## Modify env values in **.env** file

Change **APP_NAME** and **APP_PORT** accordingly

Or using default values:

```dotenv
APP_NAME=portainer
APP_PORT=9001
```

## Setup

Run:

```bash
docker compose up -d
```

## Check the network ID

Run:

```bash
docker ps
```

Check the Container ID of **`APP_NAME`-docker**.

Run the command:

```bash
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
```

``: 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`.