# /opt/stacks/portainer/docker-compose.yml services: portainer: image: portainer/portainer-ce:latest container_name: portainer restart: unless-stopped ports: - "9000:9000" # Interfície web HTTP (només local) - "9443:9443" # Interfície web HTTPS (només local) # - "8000:8000" # Agent tunnel — descomenta si uses agents remots volumes: - /var/run/docker.sock:/var/run/docker.sock - portainer_data:/data networks: - shared_net volumes: portainer_data: networks: shared_net: external: true name: shared_net