services: portainer: container_name: portainer hostname: portainer image: portainer/portainer-ce:latest ports: - "${PORTAINER_PORT}:9000" profiles: - target restart: always volumes: - portainer_data_volume:/data - /var/run/docker.sock:/var/run/docker.sock - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro volumes: portainer_data_volume: name: portainer_data_volume