version: '3.9' services: portainer: image: portainer/portainer-ce container_name: portainer ports: - "9000:9000" volumes: - /etc/docker/portainer:/data - /var/run/docker.sock:/var/run/docker.sock - /etc/localtime:/etc/localtime:ro restart: always