Docker-Compose : Portainer Server

Docker-Compose : Portainer Server

Table of Contents

docker-compose.yml

version: '3'

services:
  portainer:
    image: portainer/portainer-ce:latest
    container_name: portainer_server
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./portainer-data:/data
    ports:
      # Only to http
      # - 9000:9000
      # Only to Edge Agent
      # - 8000:8000
      # Only to https
      - 9443:9443
Les commentaires sont fermés.