version: '3'
services:
  portainer:
    image: 'portainer/portainer-ce:latest'
    container_name: {{ name_docker }}
    hostname: {{ name_docker }}
    restart: always
    network_mode: bridge
    ports:
      - '8000:8000'
      - '9000:9000'
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./:/data