85 words
1 minutes
Portainer Installation with Docker Compose

Portainer Installation with Docker Compose#

Complete Docker Compose configuration for Portainer Community Edition. This quick reference shows you how to deploy Portainer, manage Docker containers, and access the admin panel with a simple docker-compose.yml file.

Create docker-compose.yml:

nano docker-compose.yml
services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ce:sts
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./portainer_data:/data
    ports:
      - 127.0.0.1:10443:9000 # HTTP
      #- 127.0.0.1:10443:9443 # HTTPS
      #- 8000:8000  # Remove if you do not intend to use Edge Agents

networks:
  default:
    name: portainer_network

Run Docker:

docker compose up -d

Open a web browser and go to http://127.0.0.1:10443.

Portainer Installation with Docker Compose
https://blog.juyung.com/posts/en/2026/09/19/
Author
Jay Juyung
Published at
2026-09-19
License
CC BY