services:
  portainer:
    container_name: portainer
    image: docker.io/portainer/portainer-ce:2.42.0
    restart: unless-stopped
    networks:
      - homelab-network
    ports:
      - 9443:9443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ~/docker-volumes/portainer-data:/data
    security_opt:
      - no-new-privileges:true
