Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tanhongit/portainer-docker
- Owner: tanhongit
- Created: 2022-02-26T21:13:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-23T05:23:59.000Z (5 months ago)
- Last Synced: 2024-10-09T20:36:14.311Z (about 1 month ago)
- Topics: compose, composer-installer, docker, docker-compose, dockerfile, env, portainer, portainer-docker
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.